GTK2 GUI: replace brace-or-equals default with explicit constructor default

This commit is contained in:
rakslice 2025-01-22 18:43:37 -08:00
parent 2efce1ddd0
commit 05cd8b0a8d
3 changed files with 9 additions and 3 deletions

View File

@ -74,7 +74,9 @@ static void add_volume_entry_guessed(const char * filename);
struct opt_desc {
int label_id;
GtkSignalFunc func;
GtkWidget ** save_ref = NULL;
GtkWidget ** save_ref;
opt_desc(int label_id, GCallback func, GtkWidget **save_ref=NULL) : label_id(label_id), func(func), save_ref(save_ref) { }
};
struct combo_desc {

View File

@ -107,7 +107,9 @@ gchar * tchar_to_g_utf8(const TCHAR * str) {
struct opt_desc {
int label_id;
GtkSignalFunc func;
GtkWidget ** save_ref = NULL;
GtkWidget ** save_ref;
opt_desc(int label_id, GCallback func, GtkWidget **save_ref=NULL) : label_id(label_id), func(func), save_ref(save_ref) { }
};
struct combo_desc {

View File

@ -75,7 +75,9 @@ static void add_volume_entry_guessed(const char * filename);
struct opt_desc {
int label_id;
GCallback func;
GtkWidget ** save_ref = NULL;
GtkWidget ** save_ref;
opt_desc(int label_id, GCallback func, GtkWidget **save_ref=NULL) : label_id(label_id), func(func), save_ref(save_ref) { }
};
struct combo_desc {