diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-02-01 08:00:04 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-02-01 08:00:04 +0100 |
commit | 45da05715cd75cb17e13516d534c4a48ec023582 (patch) | |
tree | ad3dd0c1d6bc31e037fc97ef3fc9f925841c4c34 /libqmenumodel/src/ayatanamenumodelevents.cpp | |
parent | 7f5119f81fdfa2cc97df91785dcce4798b0700cf (diff) | |
parent | f441fabc655a021e161e59f26c302b9a94b5c3fc (diff) | |
download | qmenumodel-45da05715cd75cb17e13516d534c4a48ec023582.tar.gz qmenumodel-45da05715cd75cb17e13516d534c4a48ec023582.tar.bz2 qmenumodel-45da05715cd75cb17e13516d534c4a48ec023582.zip |
Merge branch 'tari01-pr/cleanup-compile-flags'
Attributes GH PR #19: https://github.com/AyatanaIndicators/qmenumodel/pull/19
Diffstat (limited to 'libqmenumodel/src/ayatanamenumodelevents.cpp')
-rw-r--r-- | libqmenumodel/src/ayatanamenumodelevents.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libqmenumodel/src/ayatanamenumodelevents.cpp b/libqmenumodel/src/ayatanamenumodelevents.cpp index 357b6be..70f2cfc 100644 --- a/libqmenumodel/src/ayatanamenumodelevents.cpp +++ b/libqmenumodel/src/ayatanamenumodelevents.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 @@ -15,6 +16,7 @@ * * Authors: * Nicholas Dedekind <nick.dedekind@canonical.com + * Robert Tari <robert@tari.in> */ #include <glib-object.h> @@ -39,7 +41,7 @@ AyatanaMenuModelAddRowEvent::AyatanaMenuModelAddRowEvent(GPtrArray *_items, int position(_position) { if (items) { - for (gint i = 0; i < items->len; ++i) + for (guint i = 0; i < items->len; ++i) g_object_ref(g_ptr_array_index(items, i)); g_ptr_array_ref(items); } @@ -48,7 +50,7 @@ AyatanaMenuModelAddRowEvent::AyatanaMenuModelAddRowEvent(GPtrArray *_items, int AyatanaMenuModelAddRowEvent::~AyatanaMenuModelAddRowEvent() { if (items) { - for (gint i = 0; i < items->len; ++i) + for (guint i = 0; i < items->len; ++i) g_object_unref(g_ptr_array_index(items, i)); g_ptr_array_unref(items); } |