diff options
author | David Robillard <d@drobilla.net> | 2019-12-08 18:15:35 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-08 20:59:06 +0100 |
commit | 88dff1aabd3c81d1d81ac256e0061b98e0d24cec (patch) | |
tree | a36763244801dbb2016c84cad81587c6a650a5fc /src/gui/GraphTreeWindow.cpp | |
parent | c35cbf038d0992887b8d4bcf5d4ff83c323ec60c (diff) | |
download | ingen-88dff1aabd3c81d1d81ac256e0061b98e0d24cec.tar.gz ingen-88dff1aabd3c81d1d81ac256e0061b98e0d24cec.tar.bz2 ingen-88dff1aabd3c81d1d81ac256e0061b98e0d24cec.zip |
Cleanup: Use empty() instead of size() where appropriate
Diffstat (limited to 'src/gui/GraphTreeWindow.cpp')
-rw-r--r-- | src/gui/GraphTreeWindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |