From f9d6be962602778876941fa3879b874b67970f92 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Sun, 30 Mar 2008 00:57:36 +0000 Subject: [PATCH] use isEmpty() instead svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791612 --- containment.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/containment.cpp b/containment.cpp index 84270b6f9..8f7d19572 100644 --- a/containment.cpp +++ b/containment.cpp @@ -343,14 +343,14 @@ void Containment::contextMenuEvent(QGraphicsSceneContextMenuEvent* event) } QList containmentActions = contextActions(); - if (containmentActions.count() > 0) { + if (!containmentActions.isEmpty()) { if (hasEntries) { desktopMenu.addSeparator(); } hasEntries = true; QMenu *containmentActionMenu = &desktopMenu; - if (actions.count() > 0 && containmentActions.count() > 2) { + if (!actions.isEmpty() && containmentActions.count() > 2) { containmentActionMenu = new KMenu(i18n("%1 Options", name()), &desktopMenu); desktopMenu.addMenu(containmentActionMenu); } @@ -1135,7 +1135,7 @@ void Containment::dropEvent(QGraphicsSceneDragDropEvent *event) addApplet("icon", args, 0, geom); } else { //TODO: should we show a dialog here to choose which plasmoid load if - //appletList.count() > 0? + //!appletList.isEmpty() addApplet(appletList.first().pluginName(), args, 0, geom); } }