mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 08:43:09 -03:00
Change localized_desc() to return a reference
Bubble up the reference returned by `C_()`. This is a prerequisite for a bigger change I'm working on.
This commit is contained in:
@@ -106,7 +106,7 @@ struct complete_entry_opt_t {
|
||||
/// Completion flags.
|
||||
complete_flags_t flags;
|
||||
|
||||
wcstring localized_desc() const { return C_(desc); }
|
||||
const wcstring &localized_desc() const { return C_(desc); }
|
||||
|
||||
size_t expected_dash_count() const {
|
||||
switch (this->type) {
|
||||
|
||||
Reference in New Issue
Block a user