diff options
author | rdaneelolivaw <devnull@localhost> | 2007-01-03 02:17:01 +0000 |
---|---|---|
committer | rdaneelolivaw <devnull@localhost> | 2007-01-03 02:17:01 +0000 |
commit | dcb0fd2d94cb036c4513a6f1549f3ee93dae34ec (patch) | |
tree | 06398ef73d667b4c717dfd19f2d5f759e3d83629 /gtk/PlatGTK.cxx | |
parent | e0f933ace144987173a2c539549ce38b2c514c1e (diff) | |
download | scintilla-mirror-dcb0fd2d94cb036c4513a6f1549f3ee93dae34ec.tar.gz |
Remove [MSVC] compile-time warnings for "empty" controlled statement and gboolean != bool
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r-- | gtk/PlatGTK.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 50954d475..59e4d9dca 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -2283,7 +2283,7 @@ void ListBoxX::Select(int n) { return; } - bool valid = gtk_tree_model_iter_nth_child(model, &iter, NULL, n); + bool valid = gtk_tree_model_iter_nth_child(model, &iter, NULL, n) != FALSE; if (valid) { gtk_tree_selection_select_iter(selection, &iter); @@ -2356,7 +2356,7 @@ int ListBoxX::Find(const char *prefix) { GtkTreeIter iter; GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(list)); - bool valid = gtk_tree_model_get_iter_first(model, &iter); + bool valid = gtk_tree_model_get_iter_first(model, &iter) != FALSE; int i = 0; while(valid) { gchar *s; @@ -2364,7 +2364,7 @@ int ListBoxX::Find(const char *prefix) { if (s && (0 == strncmp(prefix, s, strlen(prefix)))) { return i; } - valid = gtk_tree_model_iter_next(model, &iter); + valid = gtk_tree_model_iter_next(model, &iter) != FALSE; i++; } #endif @@ -2388,7 +2388,7 @@ void ListBoxX::GetValue(int n, char *value, int len) { #else GtkTreeIter iter; GtkTreeModel *model = gtk_tree_view_get_model(GTK_TREE_VIEW(list)); - bool valid = gtk_tree_model_iter_nth_child(model, &iter, NULL, n); + bool valid = gtk_tree_model_iter_nth_child(model, &iter, NULL, n) != FALSE; if (valid) { gtk_tree_model_get(model, &iter, TEXT_COLUMN, &text, -1); } |