[gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-notebook.cc: Fix gcc warning about variable shadowing
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ConvertWarningsToErrors] src/gnome-cmd-notebook.cc: Fix gcc warning about variable shadowing
- Date: Mon, 24 Apr 2017 19:31:39 +0000 (UTC)
commit 82c4598d28cf13cfa2423cf6f3dfe4dba81a27d8
Author: Uwe Scholz <uwescholz src gnome org>
Date: Mon Apr 24 21:30:31 2017 +0200
src/gnome-cmd-notebook.cc: Fix gcc warning about variable shadowing
src/gnome-cmd-notebook.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-notebook.cc b/src/gnome-cmd-notebook.cc
index 8e48a06..5caf4fe 100644
--- a/src/gnome-cmd-notebook.cc
+++ b/src/gnome-cmd-notebook.cc
@@ -107,11 +107,11 @@ int GnomeCmdNotebook::find_tab_num_at_pos(gint screen_x, gint screen_y) const
return -1;
GtkPositionType tab_pos = gtk_notebook_get_tab_pos (*this);
- GtkWidget *page;
+ GtkWidget *the_page;
- for (int page_num=0; (page=GnomeCmdNotebook::page(page_num)); ++page_num)
+ for (int page_num=0; (the_page=GnomeCmdNotebook::page(page_num)); ++page_num)
{
- GtkWidget *tab = gtk_notebook_get_tab_label (*this, page);
+ GtkWidget *tab = gtk_notebook_get_tab_label (*this, the_page);
g_return_val_if_fail (tab!=NULL, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]