summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Plugin.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-07-17 10:52:37 -0400
committerDavid Robillard <d@drobilla.net>2024-07-17 11:47:19 -0400
commite2bbec54b3b26173284754b786310fc7d8589ecc (patch)
tree31e0274e91f9a98d5590d168b6ed733376f65dbb /src/server/LV2Plugin.cpp
parentdf04ca05d50928548e5fcd847148cd8c7e843741 (diff)
downloadingen-e2bbec54b3b26173284754b786310fc7d8589ecc.tar.gz
ingen-e2bbec54b3b26173284754b786310fc7d8589ecc.tar.bz2
ingen-e2bbec54b3b26173284754b786310fc7d8589ecc.zip
Use empty() method instead of checking length
Diffstat (limited to 'src/server/LV2Plugin.cpp')
-rw-r--r--src/server/LV2Plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/LV2Plugin.cpp b/src/server/LV2Plugin.cpp
index 1e88952e..ff571d0b 100644
--- a/src/server/LV2Plugin.cpp
+++ b/src/server/LV2Plugin.cpp
@@ -74,7 +74,7 @@ LV2Plugin::symbol() const
working = working.substr(0, working.length() - 1);
}
- while (working.length() > 0) {
+ while (!working.empty()) {
const size_t last_slash = working.find_last_of('/');
const std::string symbol = working.substr(last_slash+1);
if ( (symbol[0] >= 'a' && symbol[0] <= 'z')