X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f6edffd495f1f4f1ba77c629abcb97b08b6da6..b404a8f3b072129c107c6d9a5e0f6f53cd34807b:/src/common/translation.cpp diff --git a/src/common/translation.cpp b/src/common/translation.cpp index 90f02759fc..ae01cce210 100644 --- a/src/common/translation.cpp +++ b/src/common/translation.cpp @@ -904,7 +904,7 @@ bool wxMsgCatalogFile::LoadFile(const wxString& filename, if ( !fileMsg.IsOpened() ) return false; - // get the file size (assume it is less than 4Gb...) + // get the file size (assume it is less than 4GB...) wxFileOffset lenFile = fileMsg.Length(); if ( lenFile == wxInvalidOffset ) return false; @@ -1500,8 +1500,8 @@ const wxString& wxTranslations::GetString(const wxString& origString, TRACE_I18N, "string \"%s\"%s not found in %slocale '%s'.", origString, - n != UINT_MAX ? wxString::Format("[%ld]", (long)n) : wxString(), - !domain.empty() ? wxString::Format("domain '%s' ", domain) : wxString(), + (n != UINT_MAX ? wxString::Format("[%ld]", (long)n) : wxString()), + (!domain.empty() ? wxString::Format("domain '%s' ", domain) : wxString()), m_lang ); @@ -1741,7 +1741,7 @@ wxArrayString wxFileTranslationsLoader::GetAvailableTranslations(const wxString& i != prefixes.end(); ++i ) { - if (i->length() == 0) + if ( i->empty() ) continue; wxDir dir; if ( !dir.Open(*i) )