X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b36d72062f36cf09aef8979db3f00946127bcc8..053f9cc122c63048d9607a3d684e9dca28ae96ac:/include/wx/intl.h diff --git a/include/wx/intl.h b/include/wx/intl.h index d7fb1637ee..e18303f019 100644 --- a/include/wx/intl.h +++ b/include/wx/intl.h @@ -131,7 +131,10 @@ extern WXDLLEXPORT wxLocale* wxGetLocale(); inline const wxMB2WXbuf wxGetTranslation(const wxChar *sz) { wxLocale *pLoc = wxGetLocale(); - return pLoc ? pLoc->GetString(sz) : (const wxMB2WXbuf)sz; + if (pLoc) + return pLoc->GetString(sz); + else + return (const wxMB2WXbuf)sz; } #endif