From kde-commits Wed Dec 08 19:35:16 2010 From: =?utf-8?q?Aaron=20J=2E=20Seigo?= Date: Wed, 08 Dec 2010 19:35:16 +0000 To: kde-commits Subject: KDE/kdebase/workspace/libs/plasmagenericshell Message-Id: <20101208193516.97C72AC8A5 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129183696721770 SVN commit 1204709 by aseigo: constify and clean a bit M +5 -5 backgrounddialog.cpp --- trunk/KDE/kdebase/workspace/libs/plasmagenericshell/backgrounddialog.cpp #1204708:1204709 @@ -474,9 +474,9 @@ void BackgroundDialog::saveConfig() { - QString wallpaperPlugin = d->backgroundDialogUi.wallpaperMode->itemData(d->backgroundDialogUi.wallpaperMode->currentIndex()).value().first; - QString wallpaperMode = d->backgroundDialogUi.wallpaperMode->itemData(d->backgroundDialogUi.wallpaperMode->currentIndex()).value().second; - QString containment = d->backgroundDialogUi.containmentComboBox->itemData(d->backgroundDialogUi.containmentComboBox->currentIndex(), + const QString wallpaperPlugin = d->backgroundDialogUi.wallpaperMode->itemData(d->backgroundDialogUi.wallpaperMode->currentIndex()).value().first; + const QString wallpaperMode = d->backgroundDialogUi.wallpaperMode->itemData(d->backgroundDialogUi.wallpaperMode->currentIndex()).value().second; + const QString containment = d->backgroundDialogUi.containmentComboBox->itemData(d->backgroundDialogUi.containmentComboBox->currentIndex(), AppletDelegate::PluginNameRole).toString(); // Containment @@ -502,8 +502,8 @@ KPageWidgetItem *item = m->item(idx); - if (item && item != d->appearanceItem && item != d->mouseItem - && item != d->activityItem) { + if (item && item != d->appearanceItem && + item != d->mouseItem && item != d->activityItem) { itemsToRemove.append(item); } }