aboutsummaryrefslogtreecommitdiffhomepage
path: root/complete.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-07 14:57:58 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-07 14:57:58 -0800
commitb34721b3f458210caeafae7665c6d32962a24f63 (patch)
tree1ae0b7063bc63f63d9f996caf9bb6db70dc192af /complete.h
parentcb6be2a50dbf6718fad88c3586e409a53c785324 (diff)
Miscellaneous optimizations to reduce string copying
Diffstat (limited to 'complete.h')
-rw-r--r--complete.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/complete.h b/complete.h
index cd4f22a1..fa00c3e5 100644
--- a/complete.h
+++ b/complete.h
@@ -124,7 +124,7 @@ public:
int flags;
/* Construction. Note: defining these so that they are not inlined reduces the executable size. */
- completion_t(const wcstring &comp, const wcstring &desc = L"", string_fuzzy_match_t match = string_fuzzy_match_t(fuzzy_match_exact), int flags_val = 0);
+ completion_t(const wcstring &comp, const wcstring &desc = wcstring(), string_fuzzy_match_t match = string_fuzzy_match_t(fuzzy_match_exact), int flags_val = 0);
completion_t(const completion_t &);
completion_t &operator=(const completion_t &);
@@ -268,7 +268,7 @@ void complete_load(const wcstring &cmd, bool reload);
\param flags completion flags
*/
-void append_completion(std::vector<completion_t> &completions, const wcstring &comp, const wcstring &desc = L"", int flags = 0, string_fuzzy_match_t match = string_fuzzy_match_t(fuzzy_match_exact));
+void append_completion(std::vector<completion_t> &completions, const wcstring &comp, const wcstring &desc = wcstring(), int flags = 0, string_fuzzy_match_t match = string_fuzzy_match_t(fuzzy_match_exact));
/* Function used for testing */
void complete_set_variable_names(const wcstring_list_t *names);