diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/ConnectWindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/GraphTreeWindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/LoadGraphWindow.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/ConnectWindow.cpp b/src/gui/ConnectWindow.cpp index 232b5e20..209475e0 100644 --- a/src/gui/ConnectWindow.cpp +++ b/src/gui/ConnectWindow.cpp @@ -526,7 +526,7 @@ ConnectWindow::gtk_callback() _app->interface()->get(URI(main_uri().string() + "/")); next_stage(); } else if (_connect_stage == 4) { - if (_app->store()->size() > 0) { + if (!_app->store()->empty()) { SPtr<const GraphModel> root = dynamic_ptr_cast<const GraphModel>( _app->store()->object(Raul::Path("/"))); if (root) { diff --git a/src/gui/GraphTreeWindow.cpp b/src/gui/GraphTreeWindow.cpp index 5046eac9..68f6e392 100644 --- a/src/gui/GraphTreeWindow.cpp +++ b/src/gui/GraphTreeWindow.cpp @@ -139,7 +139,7 @@ GraphTreeWindow::find_graph(Gtk::TreeModel::Children root, SPtr<GraphModel> pm = (*c)[_graph_tree_columns.graph_model_col]; if (graph == pm) { return c; - } else if ((*c)->children().size() > 0) { + } else if (!(*c)->children().empty()) { Gtk::TreeModel::iterator ret = find_graph(c->children(), graph); if (ret != c->children().end()) { return ret; diff --git a/src/gui/LoadGraphWindow.cpp b/src/gui/LoadGraphWindow.cpp index e3588ddf..62c68b04 100644 --- a/src/gui/LoadGraphWindow.cpp +++ b/src/gui/LoadGraphWindow.cpp @@ -163,7 +163,7 @@ LoadGraphWindow::ok_clicked() _app->forge().make(_poly_spinbutton->get_value_as_int())); } - if (get_uri() == "") { + if (get_uri().empty()) { return; } @@ -189,7 +189,7 @@ LoadGraphWindow::ok_clicked() y = _app->forge().make(y.get<float>() + 20.0f); Raul::Symbol symbol(symbol_from_filename(u)); - if (uri_list.size() == 1 && _symbol_entry->get_text() != "") { + if (uri_list.size() == 1 && !_symbol_entry->get_text().empty()) { symbol = Raul::Symbol::symbolify(_symbol_entry->get_text()); } |