From 523a54d9531f0107819892dfc5e064482780cc41 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 21 Sep 2007 10:51:14 +0000 Subject: [PATCH] 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 --- src/common/platinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.50.0