diff options
author | Albert Astals Cid <albert.astals@canonical.com> | 2017-03-16 10:24:11 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals@canonical.com> | 2017-03-16 10:24:11 +0100 |
commit | 8c0801327112995553a58850fe99607920219126 (patch) | |
tree | 43e4cb909473dd288c991e8a94dd0a78631f2fb6 /libqmenumodel/src | |
parent | 4e10e84a21f6d3f34898f7f8f4c922992e9c09ff (diff) | |
download | qmenumodel-8c0801327112995553a58850fe99607920219126.tar.gz qmenumodel-8c0801327112995553a58850fe99607920219126.tar.bz2 qmenumodel-8c0801327112995553a58850fe99607920219126.zip |
Review improvements
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r-- | libqmenumodel/src/unitymenumodel.cpp | 4 |
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 { |