diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-29 09:26:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-29 09:40:44 +0000 |
commit | 1f93816dd5d75aca98f210017d0b58b7ef1d08da (patch) | |
tree | 8a048e4fe825dfcfe3db32d6545b9a4793c13e65 /sw/source/core/crsr/crsrsh.cxx | |
parent | 92c504b5bd9ec81474704f563b23a2fcd422d1d1 (diff) |
loplugin:stringadd in sw
when applying my upcoming patch to also consider O[U]StringBuffer
Change-Id: I0999a0b04236c276d49c541bbbe3932ba3e5e05d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149678
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/crsr/crsrsh.cxx')
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index 9d94c133f028..b8dd11dc533f 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -1330,14 +1330,14 @@ OUString SwCursorShell::getPageRectangles() OUStringBuffer aBuf; for (const SwFrame* pFrame = pLayout->GetLower(); pFrame; pFrame = pFrame->GetNext()) { - aBuf.append(pFrame->getFrameArea().Left()); - aBuf.append(", "); - aBuf.append(pFrame->getFrameArea().Top()); - aBuf.append(", "); - aBuf.append(pFrame->getFrameArea().Width()); - aBuf.append(", "); - aBuf.append(pFrame->getFrameArea().Height()); - aBuf.append("; "); + aBuf.append(OUString::number(pFrame->getFrameArea().Left()) + + ", " + + OUString::number(pFrame->getFrameArea().Top()) + + ", " + + OUString::number(pFrame->getFrameArea().Width()) + + ", " + + OUString::number(pFrame->getFrameArea().Height()) + + "; "); } if (!aBuf.isEmpty()) aBuf.setLength( aBuf.getLength() - 2); // remove the last "; " |