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;