diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-30 10:23:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-30 11:56:56 +0000 |
commit | 8ad0669955228b2da64ecce34ea71d761d066864 (patch) | |
tree | 78aac28383202d89d696bd429ea1b18bcb54bd20 /test/source | |
parent | f24d38de3c23479e79768cd3fcfe37692cee27e4 (diff) |
loplugin:stringadd in test..tools
when applying my upcoming patch to also consider O[U]StringBuffer
Change-Id: I8619fa3280338afdfe75bdbfda6cb118d396e1c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149749
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/a11y/AccessibilityTools.cxx | 7 | ||||
-rw-r--r-- | test/source/lokcallback.cxx | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/test/source/a11y/AccessibilityTools.cxx b/test/source/a11y/AccessibilityTools.cxx index b754f46d2f69..15a7cec17bc3 100644 --- a/test/source/a11y/AccessibilityTools.cxx +++ b/test/source/a11y/AccessibilityTools.cxx @@ -660,9 +660,7 @@ OUString AccessibilityTools::debugName(accessibility::XAccessibleAction* xAct) if (i > 0) r.append(", "); - r.append("description=\""); - r.append(xAct->getAccessibleActionDescription(i)); - r.append('"'); + r.append("description=\"" + xAct->getAccessibleActionDescription(i) + "\""); const auto& xKeyBinding = xAct->getAccessibleActionKeyBinding(i); if (xKeyBinding) @@ -689,8 +687,7 @@ OUString AccessibilityTools::debugName(accessibility::XAccessibleAction* xAct) r.append("<Mod3>"); if (keyStroke.Modifiers & awt::KeyModifier::SHIFT) r.append("<Shift>"); - r.append(keyStroke.KeyChar); - r.append('"'); + r.append(OUStringChar(keyStroke.KeyChar) + "\""); } } r.append("]"); diff --git a/test/source/lokcallback.cxx b/test/source/lokcallback.cxx index 5af844f089ad..323b263b7e76 100644 --- a/test/source/lokcallback.cxx +++ b/test/source/lokcallback.cxx @@ -68,10 +68,8 @@ void TestLokCallbackWrapper::libreOfficeKitViewInvalidateTilesCallback( buf.append("EMPTY"); if (comphelper::LibreOfficeKit::isPartInInvalidation()) { - buf.append(", "); - buf.append(static_cast<sal_Int32>(nPart)); - buf.append(", "); - buf.append(static_cast<sal_Int32>(nMode)); + buf.append(", " + OString::number(static_cast<sal_Int32>(nPart)) + ", " + + OString::number(static_cast<sal_Int32>(nMode))); } callCallback(LOK_CALLBACK_INVALIDATE_TILES, buf.makeStringAndClear().getStr(), NO_VIEWID); } |