don't take addr of temporary

svn path=/trunk/KDE/kdebase/workspace/; revision=1123365
This commit is contained in:
Aaron J. Seigo 2010-05-05 22:33:20 +00:00 committed by Marco Martin
parent 73cea339a8
commit de2f7ef846

View File

@ -59,7 +59,8 @@ Containment::~Containment()
d->oldWallpaperMode != d->wallpaperMode) {
containment->setWallpaper(d->wallpaperPlugin, d->wallpaperMode);
} else if (wallpaperConfigDirty() && containment->wallpaper()) {
KConfigGroup cg(&containment->config(), "Wallpaper");
KConfigGroup cg(containment->config());
cg = KConfigGroup(&cg, "Wallpaper");
containment->wallpaper()->restore(cg);
}
}