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:
@@ -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__)
|
||||
|
Reference in New Issue
Block a user