summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-06 12:05:16 +0100
committerraveit65 <[email protected]>2021-03-04 16:35:02 +0100
commitfb27d5a65ea8513d047e6bcd98acf248eaeb518a (patch)
tree0359f08904f69d7f991bfffb2c34d28d12232863
parent5bce857c80f0529545866cf79d297c46311e9832 (diff)
downloadpluma-fb27d5a65ea8513d047e6bcd98acf248eaeb518a.tar.bz2
pluma-fb27d5a65ea8513d047e6bcd98acf248eaeb518a.tar.xz
cppcheck warning: Local variable 'icon' shadows outer argument
-rw-r--r--plugins/filebrowser/pluma-file-browser-widget.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/filebrowser/pluma-file-browser-widget.c b/plugins/filebrowser/pluma-file-browser-widget.c
index f7f8b0db..fa9ebf01 100644
--- a/plugins/filebrowser/pluma-file-browser-widget.c
+++ b/plugins/filebrowser/pluma-file-browser-widget.c
@@ -1516,7 +1516,7 @@ get_topmost_file (GFile * file)
static GtkWidget *
create_goto_menu_item (PlumaFileBrowserWidget *obj,
GList *item,
- GdkPixbuf *icon)
+ GdkPixbuf *icon_pixbuf)
{
GtkWidget *menu_item;
gchar *label_text;
@@ -1528,8 +1528,8 @@ create_goto_menu_item (PlumaFileBrowserWidget *obj,
if (!get_from_bookmark_file (obj, loc->virtual_root, &label_text, &pixbuf)) {
label_text = pluma_file_browser_utils_file_basename (loc->virtual_root);
- if (icon)
- pixbuf = g_object_ref (icon);
+ if (icon_pixbuf)
+ pixbuf = g_object_ref (icon_pixbuf);
}
if (pixbuf) {