mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 07:58:38 +08:00
'C_' function to use g_empty_string
Use the global empty string instead of having its own.
This commit is contained in:
parent
1f41ce9446
commit
bc4e7c3fea
@ -70,8 +70,7 @@
|
||||
/// the response).
|
||||
#ifdef HAVE_GETTEXT
|
||||
static const wcstring &C_(const wcstring &s) {
|
||||
static wcstring empty;
|
||||
return s.empty() ? empty : wgettext(s.c_str());
|
||||
return s.empty() ? g_empty_string : wgettext(s.c_str());
|
||||
}
|
||||
#else
|
||||
static const wcstring &C_(const wcstring &s) { return s; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user