author | zautrix <zautrix> | 2004-07-04 14:45:19 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-04 14:45:19 (UTC) |
commit | 2978e6b5327f619dc8e295685f46640158e1fab0 (patch) (unidiff) | |
tree | 24bf8b27df9dfe91a12c0c7319d396eee8abbf67 /microkde | |
parent | dd549dd992f914d30c39c6c85297d689b9ac6308 (diff) | |
download | kdepimpi-2978e6b5327f619dc8e295685f46640158e1fab0.zip kdepimpi-2978e6b5327f619dc8e295685f46640158e1fab0.tar.gz kdepimpi-2978e6b5327f619dc8e295685f46640158e1fab0.tar.bz2 |
Added missing initialization of iterator
-rw-r--r-- | microkde/kconfig.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/microkde/kconfig.cpp b/microkde/kconfig.cpp index b882adb..f8e362e 100644 --- a/microkde/kconfig.cpp +++ b/microkde/kconfig.cpp | |||
@@ -334,14 +334,15 @@ void KConfig::sync() | |||
334 | */ | 334 | */ |
335 | bool KConfig::deleteGroup( const QString& group) | 335 | bool KConfig::deleteGroup( const QString& group) |
336 | { | 336 | { |
337 | bool dirty = false; | 337 | bool dirty = false; |
338 | int pos; | 338 | int pos; |
339 | 339 | ||
340 | QMap<QString,bool>::Iterator itBool; | 340 | QMap<QString,bool>::Iterator itBool = mBoolMap.begin(); |
341 | QMap<QString,bool>::Iterator delBool; | 341 | QMap<QString,bool>::Iterator delBool; |
342 | |||
342 | while ( itBool != mBoolMap.end() ) { | 343 | while ( itBool != mBoolMap.end() ) { |
343 | pos = itBool.key().find( group ); | 344 | pos = itBool.key().find( group ); |
344 | if (pos == 0) { | 345 | if (pos == 0) { |
345 | delBool = itBool; | 346 | delBool = itBool; |
346 | ++itBool; | 347 | ++itBool; |
347 | mBoolMap.remove(delBool); | 348 | mBoolMap.remove(delBool); |