aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/ayatanamenumodel.cpp
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-01-13 12:51:32 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-01 07:58:22 +0100
commitd23a290dae52eec26bb4fd772168f38bd6e59f4e (patch)
tree3535261eaa585b4d19f8b22b8b07ba6d766d529b /libqmenumodel/src/ayatanamenumodel.cpp
parent7f5119f81fdfa2cc97df91785dcce4798b0700cf (diff)
downloadqmenumodel-d23a290dae52eec26bb4fd772168f38bd6e59f4e.tar.gz
qmenumodel-d23a290dae52eec26bb4fd772168f38bd6e59f4e.tar.bz2
qmenumodel-d23a290dae52eec26bb4fd772168f38bd6e59f4e.zip
Fix all build warnings
Diffstat (limited to 'libqmenumodel/src/ayatanamenumodel.cpp')
-rw-r--r--libqmenumodel/src/ayatanamenumodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libqmenumodel/src/ayatanamenumodel.cpp b/libqmenumodel/src/ayatanamenumodel.cpp
index 2c735e6..39ce0bc 100644
--- a/libqmenumodel/src/ayatanamenumodel.cpp
+++ b/libqmenumodel/src/ayatanamenumodel.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2013 Canonical Ltd.
+ * Copyright 2022 Robert Tari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -13,7 +14,9 @@
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
- * Authors: Lars Uebernickel <lars.uebernickel@canonical.com>
+ * Authors:
+ * Lars Uebernickel <lars.uebernickel@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include "ayatanamenumodel.h"
@@ -270,12 +273,10 @@ void AyatanaMenuModelPrivate::menuItemChanged(GObject *object, GParamSpec *pspec
{
GSequenceIter *it = (GSequenceIter *) user_data;
GtkMenuTrackerItem *item;
- GtkActionObservable *muxer;
AyatanaMenuModel *model;
gint position;
item = (GtkMenuTrackerItem *) g_sequence_get (it);
- muxer = _gtk_menu_tracker_item_get_observable (item);
model = (AyatanaMenuModel *) g_object_get_qdata (G_OBJECT (item), ayatana_menu_model_quark ());
position = g_sequence_iter_get_position (it);
@@ -928,7 +929,6 @@ char * AyatanaMenuModelPrivate::fullActionName(AyatanaMenuAction *action)
GSequenceIter *iter;
QByteArray bytes;
const gchar *name;
- gchar *full_name = NULL;
bytes = action->name().toUtf8();
name = bytes.constData();