[Scummvm-cvs-logs] SF.net SVN: scummvm:[40467] scummvm/trunk/gui/ListWidget.cpp
wjpalenstijn at users.sourceforge.net
wjpalenstijn at users.sourceforge.net
Mon May 11 22:53:28 CEST 2009
Revision: 40467
http://scummvm.svn.sourceforge.net/scummvm/?rev=40467&view=rev
Author: wjpalenstijn
Date: 2009-05-11 20:53:28 +0000 (Mon, 11 May 2009)
Log Message:
-----------
Use lowercase form for quickselect in ListWidget.
This matches POSIX strcasecmp and MSVC stricmp behaviour.
Modified Paths:
--------------
scummvm/trunk/gui/ListWidget.cpp
Modified: scummvm/trunk/gui/ListWidget.cpp
===================================================================
--- scummvm/trunk/gui/ListWidget.cpp 2009-05-11 20:44:43 UTC (rev 40466)
+++ scummvm/trunk/gui/ListWidget.cpp 2009-05-11 20:53:28 UTC (rev 40467)
@@ -205,12 +205,12 @@
static int matchingCharsIgnoringCase(const char *x, const char *y, bool &stop) {
int match = 0;
- while (*x && *y && toupper(*x) == toupper(*y)) {
+ while (*x && *y && tolower(*x) == tolower(*y)) {
++x;
++y;
++match;
}
- stop = !*y || (*x && (toupper(*x) >= toupper(*y)));
+ stop = !*y || (*x && (tolower(*x) >= tolower(*y)));
return match;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list