loplugin:stringloop

resurrect the plugin and run it over the codebase

Change-Id: I443a75961124aabd1e62b3c4bc166d52e4621b52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194870
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin
2025-12-01 14:25:01 +01:00
parent 8a7b5d8b3a
commit 4e2b089020
79 changed files with 820 additions and 442 deletions
+4 -4
View File
@@ -415,7 +415,7 @@ OUString AccessibilityTools::getRoleName(const sal_Int16 role)
OUString AccessibilityTools::debugAccessibleStateSet(const sal_Int64 nCombinedState)
{
OUString combinedName;
OUStringBuffer combinedName;
for (int i = 0; i < 63; i++)
{
@@ -538,13 +538,13 @@ OUString AccessibilityTools::debugAccessibleStateSet(const sal_Int64 nCombinedSt
break;
}
if (combinedName.getLength())
combinedName += " | ";
combinedName += name;
combinedName.append(" | ");
combinedName.append(name);
}
if (combinedName.isEmpty())
return u"unknown"_ustr;
return combinedName;
return combinedName.makeStringAndClear();
}
OUString AccessibilityTools::getEventIdName(const sal_Int16 event_id)