summaryrefslogtreecommitdiffstats
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
parent8441de6266f8158a05aea23c6d415f6ea65065b8 (diff)
downloadingen-992b6bbe9f17749f509ca61587efef13d052ba7f.tar.gz
ingen-992b6bbe9f17749f509ca61587efef13d052ba7f.tar.bz2
ingen-992b6bbe9f17749f509ca61587efef13d052ba7f.zip
Don't use size() to check emptiness
-rw-r--r--.clang-tidy1
-rw-r--r--src/gui/NodeModule.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy
index a1c6af8c..78eebb55 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -63,7 +63,6 @@ Checks: >
-modernize-use-trailing-return-type,
-performance-unnecessary-value-param,
-portability-simd-intrinsics,
- -readability-container-size-empty,
-readability-convert-member-functions-to-static,
-readability-delete-null-pointer,
-readability-implicit-bool-conversion,
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
}