only used once, no point in putting in a temp var

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=730443
This commit is contained in:
Aaron J. Seigo 2007-10-28 20:03:04 +00:00
parent e2f8093c2e
commit 4d1cac45c8

View File

@ -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;
}