From 4d1cac45c820b44ccde2319f39f05d85ed827007 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sun, 28 Oct 2007 20:03:04 +0000 Subject: [PATCH] only used once, no point in putting in a temp var svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=730443 --- containment.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/containment.cpp b/containment.cpp index 7e56d8d6c..383c3ac9a 100644 --- a/containment.cpp +++ b/containment.cpp @@ -406,8 +406,7 @@ void Containment::setScreen(int screen) //kDebug() << "setting screen to" << screen; QDesktopWidget desktop; - int numScreens = desktop.numScreens(); - if (screen < -1 || screen > numScreens - 1) { + if (screen < -1 || screen > desktop.numScreens() - 1) { screen = -1; }