X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b36d72062f36cf09aef8979db3f00946127bcc8..764a3a49068a94d1edb96f299b10c155d101c1b0:/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