[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/netbook/containments/sal
From: Marco Martin <notmart () gmail ! com>
Date: 2010-01-24 18:24:59
Message-ID: 1264357499.688827.517.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1079652 by mart:
static cast, since the object is not actually accessed is safe, catches also cases \
when the action has already been deleted BUG:224012
M +1 -5 iconactioncollection.cpp
--- trunk/KDE/kdebase/workspace/plasma/netbook/containments/sal/iconactioncollection.cpp \
#1079651:1079652 @@ -62,11 +62,7 @@
void IconActionCollection::actionDestroyed(QObject *object)
{
- QAction *action = qobject_cast<QAction *>(object);
-
- if (action) {
- m_actions.remove(action);
- }
+ m_actions.remove(static_cast<QAction *>(object));
}
void IconActionCollection::immutabilityChanged(Plasma::ImmutabilityType \
immutability)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic