summaryrefslogtreecommitdiff
path: root/vcl/source/uitest
diff options
context:
space:
mode:
authorFurkan Ahmet Kara <furkanahmetkara.fk@gmail.com>2017-10-21 23:36:44 +0300
committerMichael Stahl <mstahl@redhat.com>2017-10-30 11:37:14 +0100
commitc7660cc543903c26c30d22e70e42deab9573c94d (patch)
tree3ff5028b75082ca8830da25dd651c07056fd1c57 /vcl/source/uitest
parent7939e29b4117733005f81960ca792b2629d63212 (diff)
tdf#112689 - Replace chained O(U)StringBuffer::append() with operator+
Change-Id: If0ed3929f8faab187327b90e63014720e287e501 Reviewed-on: https://gerrit.libreoffice.org/43681 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Muhammet Kara <muhammet.kara@pardus.org.tr> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/source/uitest')
-rw-r--r--vcl/source/uitest/uiobject.cxx18
1 files changed, 8 insertions, 10 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx
index 7b09da585859..9fe9035e2e6a 100644
--- a/vcl/source/uitest/uiobject.cxx
+++ b/vcl/source/uitest/uiobject.cxx
@@ -246,22 +246,20 @@ std::vector<KeyEvent> generate_key_events_from_keycode(const OUString& rStr)
OUString to_string(const Point& rPos)
{
- OUStringBuffer aBuffer;
- aBuffer.append(OUString::number(rPos.X()));
- aBuffer.append("x");
- aBuffer.append(OUString::number(rPos.Y()));
+ OUString sStr = OUString::number(rPos.X())
+ + "x"
+ + OUString::number(rPos.Y());
- return aBuffer.makeStringAndClear();
+ return sStr;
}
OUString to_string(const Size& rSize)
{
- OUStringBuffer aBuffer;
- aBuffer.append(rSize.Width());
- aBuffer.append("x");
- aBuffer.append(rSize.Height());
+ OUString sStr = OUString::number(rSize.Width())
+ + "x"
+ + OUString::number(rSize.Height());
- return aBuffer.makeStringAndClear();
+ return sStr;
}
}