From d9a206dc222e174e01be412ebd2cc6982362291f Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Wed, 24 Sep 2008 02:49:21 +0000 Subject: [PATCH] SVN_SILENT: ws svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=864141 --- corona.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/corona.cpp b/corona.cpp index 839c28a0a..43853420b 100644 --- a/corona.cpp +++ b/corona.cpp @@ -369,8 +369,7 @@ void Corona::addOffscreenWidget(QGraphicsWidget *widget) //check if the layout allready contains this widget. //XXX: duplicated from removeOffscreenWidget() for (int i = 0; i < d->offscreenLayout->count(); i++) { - QGraphicsWidget *foundWidget = - dynamic_cast(d->offscreenLayout->itemAt(i)); + QGraphicsWidget *foundWidget = dynamic_cast(d->offscreenLayout->itemAt(i)); if (foundWidget == widget) { return; } @@ -388,8 +387,7 @@ void Corona::removeOffscreenWidget(QGraphicsWidget *widget) } for (int i = 0; i < d->offscreenLayout->count(); i++) { - QGraphicsWidget *foundWidget = - dynamic_cast(d->offscreenLayout->itemAt(i)); + QGraphicsWidget *foundWidget = dynamic_cast(d->offscreenLayout->itemAt(i)); if (foundWidget == widget) { d->offscreenLayout->removeAt(i); }