From 88dff1aabd3c81d1d81ac256e0061b98e0d24cec Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Dec 2019 18:15:35 +0100 Subject: Cleanup: Use empty() instead of size() where appropriate --- src/gui/GraphTreeWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/GraphTreeWindow.cpp') 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 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; -- cgit v1.2.1