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
This commit is contained in:
Max Horn 2006-10-08 00:20:44 +00:00
parent fbbc609610
commit dca237598b
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ ADList AdvancedDetector::detectGame(const FSList *fslist, Language language, Pla
uint matchedCount = 0; uint matchedCount = 0;
bool fileMissing; bool fileMissing;
ADGameFileDescription *fileDesc; const ADGameFileDescription *fileDesc;
assert(_gameDescriptions.size()); assert(_gameDescriptions.size());

View file

@ -36,7 +36,7 @@ struct ADGameDescription {
const char *name; const char *name;
const char *extra; const char *extra;
int filesCount; int filesCount;
ADGameFileDescription *filesDescriptions; const ADGameFileDescription *filesDescriptions;
Language language; Language language;
Platform platform; Platform platform;
}; };