X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c48908df67c6504891cccd34088cad955b1357ca..3ca1bf5add01419ba173f0567b060fdd9fd605f9:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 66107d6fa7..ac1b779ea4 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -2505,7 +2505,7 @@ const wxChar *wxLocale::GetString(const wxChar *szOrigString, wxString wxLocale::GetHeaderValue( const wxChar* szHeader, const wxChar* szDomain ) const { - if ( wxIsEmpty(Header) ) + if ( wxIsEmpty(szHeader) ) return wxEmptyString; wxChar const * pszTrans = NULL; @@ -2535,11 +2535,11 @@ wxString wxLocale::GetHeaderValue( const wxChar* szHeader, if ( wxIsEmpty(pszTrans) ) return wxEmptyString; - wxChar const * pszFound = wxStrstr(pszTrans, Header); + wxChar const * pszFound = wxStrstr(pszTrans, szHeader); if ( pszFound == NULL ) return wxEmptyString; - pszFound += wxStrlen(Header) + 2 /* ': ' */; + pszFound += wxStrlen(szHeader) + 2 /* ': ' */; // Every header is separated by \n