diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-08-18 15:58:17 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-08-18 15:58:17 +0200 |
commit | db5ad2e09a6b38e841463dbe7eb076492b62c948 (patch) | |
tree | 5907f6416e35cbd25432a5f1f6dc9664d36aa73c /src/Core/ConfigManager.cpp | |
parent | 5da7b0847bac2a5abec95b9ac1701b74baae8964 (diff) | |
download | mad-db5ad2e09a6b38e841463dbe7eb076492b62c948.tar mad-db5ad2e09a6b38e841463dbe7eb076492b62c948.zip |
Mad funktioniert jetzt unter Windows
Diffstat (limited to 'src/Core/ConfigManager.cpp')
-rw-r--r-- | src/Core/ConfigManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Core/ConfigManager.cpp b/src/Core/ConfigManager.cpp index eb9b846..83e92db 100644 --- a/src/Core/ConfigManager.cpp +++ b/src/Core/ConfigManager.cpp @@ -40,13 +40,13 @@ bool ConfigManager::Compare::operator() (const Configurable *c1, const Configura void ConfigManager::handleConfigEntry(const ConfigEntry &entry) { bool handled = false; - for(std::set<Configurable*>::iterator c = configurables.begin(); c != configurables.end(); ++c) { + for(std::set<Configurable*, Compare>::iterator c = configurables.begin(); c != configurables.end(); ++c) { if((*c)->handleConfigEntry(entry, handled)) handled = true; } if(!handled) - application->logf(LoggerBase::WARNING, "Invalid config option '%s'.", entry[entry.getSize()-1].getKey().c_str()); + application->logf(LoggerBase::LOG_WARNING, "Invalid config option '%s'.", entry[entry.getSize()-1].getKey().c_str()); } bool ConfigManager::loadFile(const std::string &filename) { @@ -119,7 +119,7 @@ void ConfigManager::finish() { if(finished) return; - for(std::set<Configurable*>::iterator c = configurables.begin(); c != configurables.end(); ++c) + for(std::set<Configurable*, Compare>::iterator c = configurables.begin(); c != configurables.end(); ++c) (*c)->configFinished(); finished = true; |