From e2bbec54b3b26173284754b786310fc7d8589ecc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 17 Jul 2024 10:52:37 -0400 Subject: Use empty() method instead of checking length --- src/server/.clang-tidy | 1 - src/server/LV2Plugin.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src/server') diff --git a/src/server/.clang-tidy b/src/server/.clang-tidy index 741698de..ccc90183 100644 --- a/src/server/.clang-tidy +++ b/src/server/.clang-tidy @@ -21,6 +21,5 @@ Checks: > -llvm-header-guard, -misc-redundant-expression, -portability-simd-intrinsics, - -readability-container-size-empty, -readability-redundant-inline-specifier, InheritParentConfig: true 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') -- cgit v1.2.1