inline wxGetTranslation() moved so it's not called before being defined
(thanks to egcs for the warning) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -109,6 +109,17 @@ private:
|
|||||||
wxMsgCatalog *m_pMsgCat; // pointer to linked list of catalogs
|
wxMsgCatalog *m_pMsgCat; // pointer to linked list of catalogs
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// inline functions
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// get the translation of the string in the current locale
|
||||||
|
inline const char *wxGetTranslation(const char *sz)
|
||||||
|
{
|
||||||
|
wxLocale *pLoc = wxGetLocale();
|
||||||
|
return pLoc == NULL ? sz : pLoc->GetString(sz);
|
||||||
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// optional features
|
// optional features
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -144,16 +155,5 @@ private:
|
|||||||
|
|
||||||
#define TRANSSTRING_DEFINED
|
#define TRANSSTRING_DEFINED
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
// inline functions
|
|
||||||
// ----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// get the translation of the string in the current locale
|
|
||||||
inline const char *wxGetTranslation(const char *sz)
|
|
||||||
{
|
|
||||||
wxLocale *pLoc = wxGetLocale();
|
|
||||||
return pLoc == NULL ? sz : pLoc->GetString(sz);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// __INTLH__
|
// __INTLH__
|
||||||
|
Reference in New Issue
Block a user