aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorAlbert Astals Cid <albert.astals@canonical.com>2017-03-16 10:24:11 +0100
committerAlbert Astals Cid <albert.astals@canonical.com>2017-03-16 10:24:11 +0100
commit8c0801327112995553a58850fe99607920219126 (patch)
tree43e4cb909473dd288c991e8a94dd0a78631f2fb6 /libqmenumodel
parent4e10e84a21f6d3f34898f7f8f4c922992e9c09ff (diff)
downloadqmenumodel-8c0801327112995553a58850fe99607920219126.tar.gz
qmenumodel-8c0801327112995553a58850fe99607920219126.tar.bz2
qmenumodel-8c0801327112995553a58850fe99607920219126.zip
Review improvements
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index ebadaf7..43fe1b3 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -736,7 +736,7 @@ void UnityMenuModel::aboutToShow(int index)
return;
}
- GtkMenuTrackerItem *item = (GtkMenuTrackerItem *) g_sequence_get (it);
+ auto item = static_cast<GtkMenuTrackerItem*>(g_sequence_get(it));
if (!item) {
return;
}
@@ -746,7 +746,7 @@ void UnityMenuModel::aboutToShow(int index)
// Child UnityMenuModel have priv->connection null, so climb to the parent until we find a non null one
UnityMenuModelPrivate *privToUse = priv;
while (privToUse && !privToUse->connection) {
- UnityMenuModel *pModel = dynamic_cast<UnityMenuModel*>(privToUse->model->QObject::parent());
+ auto pModel = dynamic_cast<UnityMenuModel*>(privToUse->model->QObject::parent());
if (pModel) {
privToUse = pModel->priv;
} else {