diff options
author | David Robillard <d@drobilla.net> | 2020-12-14 21:21:17 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-14 22:04:29 +0100 |
commit | 992b6bbe9f17749f509ca61587efef13d052ba7f (patch) | |
tree | 6ec4a484980f911382144928acb4101a3176e819 /src | |
parent | 8441de6266f8158a05aea23c6d415f6ea65065b8 (diff) | |
download | ingen-992b6bbe9f17749f509ca61587efef13d052ba7f.tar.gz ingen-992b6bbe9f17749f509ca61587efef13d052ba7f.tar.bz2 ingen-992b6bbe9f17749f509ca61587efef13d052ba7f.zip |
Don't use size() to check emptiness
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/NodeModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 902df4ec..b90a7056 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -108,7 +108,7 @@ NodeModule::~NodeModule() bool NodeModule::idle_init() { - if (_block->ports().size() == 0) { + if (_block->ports().empty()) { return true; // Need to embed GUI, but ports haven't shown up yet } |