aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_file_manager.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2013-11-23 20:59:29 +0100
committerJohannes Schickel2013-11-23 21:01:39 +0100
commit67ce244567c8962d2a7f2a799966ad997f7b7881 (patch)
treeb64eb6eb4ca8c9610528198c02a86c3cb3644671 /engines/wintermute/base/base_file_manager.cpp
parent7409f3eb54de2959d661acd890e1a7452c0e7edc (diff)
downloadscummvm-rg350-67ce244567c8962d2a7f2a799966ad997f7b7881.tar.gz
scummvm-rg350-67ce244567c8962d2a7f2a799966ad997f7b7881.tar.bz2
scummvm-rg350-67ce244567c8962d2a7f2a799966ad997f7b7881.zip
WINTERMUTE: Use const_iterator in BaseFileManager::registerPackages.
Diffstat (limited to 'engines/wintermute/base/base_file_manager.cpp')
-rw-r--r--engines/wintermute/base/base_file_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/base/base_file_manager.cpp b/engines/wintermute/base/base_file_manager.cpp
index b97745b5ad..286f83defe 100644
--- a/engines/wintermute/base/base_file_manager.cpp
+++ b/engines/wintermute/base/base_file_manager.cpp
@@ -198,12 +198,12 @@ bool BaseFileManager::registerPackages() {
// Register without using SearchMan, as otherwise the FSNode-based lookup in openPackage will fail
// and that has to be like that to support the detection-scheme.
Common::FSList files;
- for (Common::FSList::iterator it = _packagePaths.begin(); it != _packagePaths.end(); ++it) {
+ for (Common::FSList::const_iterator it = _packagePaths.begin(); it != _packagePaths.end(); ++it) {
debugC(kWintermuteDebugFileAccess, "Should register folder: %s %s", it->getPath().c_str(), it->getName().c_str());
if (!it->getChildren(files, Common::FSNode::kListFilesOnly)) {
warning("getChildren() failed for path: %s", it->getDisplayName().c_str());
}
- for (Common::FSList::iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) {
+ for (Common::FSList::const_iterator fileIt = files.begin(); fileIt != files.end(); ++fileIt) {
// To prevent any case sensitivity issues we make the filename
// all lowercase here. This makes the code slightly prettier
// than the equivalent of using equalsIgnoreCase.