summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-14 21:21:17 +0100
committerDavid Robillard <d@drobilla.net>2020-12-14 22:04:29 +0100
commit992b6bbe9f17749f509ca61587efef13d052ba7f (patch)
tree6ec4a484980f911382144928acb4101a3176e819 /src/gui/NodeModule.cpp
parent8441de6266f8158a05aea23c6d415f6ea65065b8 (diff)
downloadingen-992b6bbe9f17749f509ca61587efef13d052ba7f.tar.gz
ingen-992b6bbe9f17749f509ca61587efef13d052ba7f.tar.bz2
ingen-992b6bbe9f17749f509ca61587efef13d052ba7f.zip
Don't use size() to check emptiness
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r--src/gui/NodeModule.cpp2
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
}