aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2006-10-08 00:20:44 +0000
committerMax Horn2006-10-08 00:20:44 +0000
commitdca237598b7389745fe4d545e1fd942e4a38ca3c (patch)
treecb4bf830d592e83ed885aaf4ebbc6626c877902a
parentfbbc6096104a588204a3aa75f2eb72afeca74f59 (diff)
downloadscummvm-rg350-dca237598b7389745fe4d545e1fd942e4a38ca3c.tar.gz
scummvm-rg350-dca237598b7389745fe4d545e1fd942e4a38ca3c.tar.bz2
scummvm-rg350-dca237598b7389745fe4d545e1fd942e4a38ca3c.zip
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)
svn-id: r24181
-rw-r--r--common/advancedDetector.cpp2
-rw-r--r--common/advancedDetector.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/advancedDetector.cpp b/common/advancedDetector.cpp
index 3399f4d4ca..4736cfc8bb 100644
--- a/common/advancedDetector.cpp
+++ b/common/advancedDetector.cpp
@@ -63,7 +63,7 @@ ADList AdvancedDetector::detectGame(const FSList *fslist, Language language, Pla
uint matchedCount = 0;
bool fileMissing;
- ADGameFileDescription *fileDesc;
+ const ADGameFileDescription *fileDesc;
assert(_gameDescriptions.size());
diff --git a/common/advancedDetector.h b/common/advancedDetector.h
index c3396a9ddc..f89df2e971 100644
--- a/common/advancedDetector.h
+++ b/common/advancedDetector.h
@@ -36,7 +36,7 @@ struct ADGameDescription {
const char *name;
const char *extra;
int filesCount;
- ADGameFileDescription *filesDescriptions;
+ const ADGameFileDescription *filesDescriptions;
Language language;
Platform platform;
};