diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 233528c88567bb7c099da5ce383b9005a60d3cfc..65c9ec8be5cc03ab87baa0a3921cdd07728d2a67 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp @@ -1281,7 +1281,8 @@ void KOPrefsDialogPlugins::usrReadConfig() i18nc( "@title:group", "Other Plugins" ) ) ); KService::List::ConstIterator it; - for ( it = plugins.constBegin(); it != plugins.constEnd(); ++it ) { + KService::List::ConstIterator end(plugins.constEnd()); + for ( it = plugins.constBegin(); it != end; ++it ) { QTreeWidgetItem *item = 0; if ( (*it)->hasServiceType( EventViews::CalendarDecoration::Decoration::serviceType() ) ) { item = new PluginItem( decorations, *it ); @@ -1312,7 +1313,7 @@ void KOPrefsDialogPlugins::usrWriteConfig() for ( int i = 0; i < mTreeWidget->topLevelItemCount(); ++i) { QTreeWidgetItem *serviceTypeGroup = mTreeWidget->topLevelItem( i ); - for ( int j = 0; j < serviceTypeGroup->childCount(); j++) { + for ( int j = 0; j < serviceTypeGroup->childCount(); ++j) { PluginItem *item = static_cast( serviceTypeGroup->child( j ) ); if( item->checkState( 0 ) == Qt::Checked ) { selectedPlugins.append( item->service()->desktopEntryName() );