[Scummvm-cvs-logs] SF.net SVN: scummvm: [24181] scummvm/trunk/common
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sun Oct 8 02:20:49 CEST 2006
Revision: 24181
http://svn.sourceforge.net/scummvm/?rev=24181&view=rev
Author: fingolfin
Date: 2006-10-07 17:20:44 -0700 (Sat, 07 Oct 2006)
Log Message:
-----------
Added a const qualifier inside struct ADGameDescription (rule of thumb: Make as many pointers and members const as possible, it helps prevent bugs, and potentially helps the optimizer)
Modified Paths:
--------------
scummvm/trunk/common/advancedDetector.cpp
scummvm/trunk/common/advancedDetector.h
Modified: scummvm/trunk/common/advancedDetector.cpp
===================================================================
--- scummvm/trunk/common/advancedDetector.cpp 2006-10-08 00:00:58 UTC (rev 24180)
+++ scummvm/trunk/common/advancedDetector.cpp 2006-10-08 00:20:44 UTC (rev 24181)
@@ -63,7 +63,7 @@
uint matchedCount = 0;
bool fileMissing;
- ADGameFileDescription *fileDesc;
+ const ADGameFileDescription *fileDesc;
assert(_gameDescriptions.size());
Modified: scummvm/trunk/common/advancedDetector.h
===================================================================
--- scummvm/trunk/common/advancedDetector.h 2006-10-08 00:00:58 UTC (rev 24180)
+++ scummvm/trunk/common/advancedDetector.h 2006-10-08 00:20:44 UTC (rev 24181)
@@ -36,7 +36,7 @@
const char *name;
const char *extra;
int filesCount;
- ADGameFileDescription *filesDescriptions;
+ const ADGameFileDescription *filesDescriptions;
Language language;
Platform platform;
};
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