diff options
| author | Kamikadze <40305144+Kam1k4dze@users.noreply.github.com> | 2025-05-31 23:49:50 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-31 19:49:50 +0100 |
| commit | 69c2b2926e128f1fd09080aed43944987a42026f (patch) | |
| tree | c92596715498f30ae33767d3c93268d4f01aec6f /src/helpers/MiscFunctions.cpp | |
| parent | 4078e1d17c0fb1439ee5a0ba1e539f06a8f47aab (diff) | |
internal: refactor to use empty() (#10599)
Diffstat (limited to 'src/helpers/MiscFunctions.cpp')
| -rw-r--r-- | src/helpers/MiscFunctions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/MiscFunctions.cpp b/src/helpers/MiscFunctions.cpp index ddd16144..8069d414 100644 --- a/src/helpers/MiscFunctions.cpp +++ b/src/helpers/MiscFunctions.cpp @@ -326,7 +326,7 @@ SWorkspaceIDName getWorkspaceIDNameFromString(const std::string& in) { finalWSID = curID; } if (finalWSID <= 0 || invalidWSes.contains(finalWSID)) { - if (namedWSes.size()) { + if (!namedWSes.empty()) { // Go to the named workspaces // Need remainingWSes more auto namedWSIdx = namedWSes.size() - remainingWSes; |
