From: Vadim Zeitlin Date: Fri, 21 Sep 2007 10:51:14 +0000 (+0000) Subject: use the lower-case version of the parameter in GetEndianness() as intended (thanks... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/523a54d9531f0107819892dfc5e064482780cc41 use the lower-case version of the parameter in GetEndianness() as intended (thanks icc for the warning) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/platinfo.cpp b/src/common/platinfo.cpp index 9bf0d9c69e..163a4c1f63 100644 --- a/src/common/platinfo.cpp +++ b/src/common/platinfo.cpp @@ -324,11 +324,11 @@ wxArchitecture wxPlatformInfo::GetArch(const wxString &arch) wxEndianness wxPlatformInfo::GetEndianness(const wxString& end) { - wxString endl(end.Lower()); - if ( end.StartsWith(wxT("little")) ) + const wxString endl(end.Lower()); + if ( endl.StartsWith(wxT("little")) ) return wxENDIAN_LITTLE; - if ( end.StartsWith(wxT("big")) ) + if ( endl.StartsWith(wxT("big")) ) return wxENDIAN_BIG; return wxENDIAN_INVALID;