all: fix clang 18 lints

This commit is contained in:
outfoxxed 2024-11-24 02:27:49 -08:00
parent e957e88ccb
commit 2571766d3b
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
27 changed files with 47 additions and 35 deletions

View file

@ -33,7 +33,7 @@ void WrapperManager::componentComplete() {
if (childItems.length() == 1) {
this->mDefaultChild = childItems.first();
if (!child) child = this->mDefaultChild;
} else if (childItems.length() != 0) {
} else if (!childItems.empty()) {
this->flags.setFlag(WrapperManager::HasMultipleChildren);
if (!child && !this->flags.testFlags(WrapperManager::NullChild)) {