Avoid unnecessary copies in wxLocale code

Micro-optimization: don't copy the strings unnecessarily when using just
a const reference is sufficient.
This commit is contained in:
Vadim Zeitlin
2017-07-14 18:59:08 +02:00
parent ca3d86155c
commit 9104e6fc9a

View File

@@ -418,7 +418,7 @@ bool wxLocale::Init(int language, int flags)
return false;
}
wxString name = info->Description;
const wxString& name = info->Description;
// Set the locale:
#if defined(__UNIX__) && !defined(__WXMAC__)