'C_' function to use g_empty_string

Use the global empty string instead of having its own.
This commit is contained in:
ridiculousfish 2022-09-23 14:32:20 -07:00
parent 1f41ce9446
commit bc4e7c3fea

View File

@ -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; }