[Scummvm-cvs-logs] SF.net SVN: scummvm: [25579] scummvm/trunk/common/advancedDetector.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Wed Feb 14 01:38:45 CET 2007


Revision: 25579
          http://scummvm.svn.sourceforge.net/scummvm/?rev=25579&view=rev
Author:   fingolfin
Date:     2007-02-13 16:38:45 -0800 (Tue, 13 Feb 2007)

Log Message:
-----------
Minor cleanup

Modified Paths:
--------------
    scummvm/trunk/common/advancedDetector.cpp

Modified: scummvm/trunk/common/advancedDetector.cpp
===================================================================
--- scummvm/trunk/common/advancedDetector.cpp	2007-02-14 00:37:02 UTC (rev 25578)
+++ scummvm/trunk/common/advancedDetector.cpp	2007-02-14 00:38:45 UTC (rev 25579)
@@ -444,11 +444,11 @@
 		if (allFiles.empty()) {
 			File testFile;
 
-			while (*ptr) {
+			for (; *ptr; ptr++) {
 				// skip the gameid
 				ptr++;
 
-				while (*ptr) {
+				for (; *ptr; ptr++) {
 					tstr = String(*ptr);
 					tstr.toLowercase();
 
@@ -459,11 +459,7 @@
 							testFile.close();
 						}
 					}
-
-					ptr++;
 				}
-
-				ptr++;
 			}
 		}
 
@@ -472,7 +468,7 @@
 
 		ptr = params.fileBasedFallback;
 
-		while (*ptr) {
+		for (; *ptr; ptr++) {
 			const char *entryGameid = *ptr++;
 			fileMissing = false;
 			int numMatchedFiles = 0;
@@ -505,8 +501,6 @@
 
 				debug(4, "and overriden");
 			}
-
-			ptr++;
 		}
 
 		if (matchedGameid) { // We got a 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