mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Avoiding some potentially confusing name space clashes
We have local variables or function arguments with the same names as function static variables (or in one case, function arguments). While all the current code was correct, it could potentially cause confusion when chasing bugs or reviewing patches. This should make things clearer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
3d75c73f36
commit
c544226334
5 changed files with 94 additions and 92 deletions
|
@ -245,7 +245,7 @@ GtkTreeViewColumn *tree_view_column(GtkWidget *tree_view, int index, const char
|
|||
return col;
|
||||
}
|
||||
|
||||
static void create_radio(GtkWidget *vbox, const char *name, ...)
|
||||
static void create_radio(GtkWidget *vbox, const char *w_name, ...)
|
||||
{
|
||||
va_list args;
|
||||
GtkRadioButton *group = NULL;
|
||||
|
@ -254,10 +254,10 @@ static void create_radio(GtkWidget *vbox, const char *name, ...)
|
|||
box = gtk_hbox_new(TRUE, 10);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), box, FALSE, FALSE, 0);
|
||||
|
||||
label = gtk_label_new(name);
|
||||
label = gtk_label_new(w_name);
|
||||
gtk_box_pack_start(GTK_BOX(box), label, TRUE, TRUE, 0);
|
||||
|
||||
va_start(args, name);
|
||||
va_start(args, w_name);
|
||||
for (;;) {
|
||||
int enabled;
|
||||
const char *name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue