From cc08a4953d3cf1af0146b29c63f8f72803f1ca48 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 20 May 2008 16:37:32 +0000 Subject: Cleaned up engine debug level code. svn-id: r32195 --- gui/debugger.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui') diff --git a/gui/debugger.cpp b/gui/debugger.cpp index 99aebe9b62..87abe854be 100644 --- a/gui/debugger.cpp +++ b/gui/debugger.cpp @@ -406,7 +406,7 @@ bool Debugger::Cmd_Help(int argc, const char **argv) { } bool Debugger::Cmd_DebugFlagsList(int argc, const char **argv) { - const Common::Array &debugLevels = Common::listSpecialDebugLevels(); + const Common::DebugLevelContainer &debugLevels = Common::listSpecialDebugLevels(); DebugPrintf("Engine debug levels:\n"); DebugPrintf("--------------------\n"); @@ -414,8 +414,8 @@ bool Debugger::Cmd_DebugFlagsList(int argc, const char **argv) { DebugPrintf("No engine debug levels\n"); return true; } - for (uint i = 0; i < debugLevels.size(); ++i) { - DebugPrintf("'%s' - Description: %s\n", debugLevels[i].option.c_str(), debugLevels[i].description.c_str()); + for (Common::DebugLevelContainer::const_iterator i = debugLevels.begin(); i != debugLevels.end(); ++i) { + DebugPrintf("'%s' - Description: %s\n", i->option.c_str(), i->description.c_str()); } DebugPrintf("\n"); return true; -- cgit v1.2.3