diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-28 15:09:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-29 09:05:18 +0200 |
commit | 4c91b89d8ce9c34179f31854dc88bd0a9fa84cba (patch) | |
tree | 1fe9cc9db455779d33c24320fedc1e25888b3e5c /xmloff/source/xforms | |
parent | a1f31211920bfae1a21ea375fa5280c9c6595e15 (diff) |
new loplugin:oustringbuffer
look for places where we are appending the temporary result of adding
strings together, to an OUStringBuffer, where we could rather call
append repeatedly and avoid the temporary creation
Change-Id: I481435124291ac7fb54b91a78344a9fe5b379a82
Reviewed-on: https://gerrit.libreoffice.org/59708
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/xforms')
-rw-r--r-- | xmloff/source/xforms/xformsexport.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/xforms/xformsexport.cxx b/xmloff/source/xforms/xformsexport.cxx index 69a8d703f117..d31ddcc9a1a2 100644 --- a/xmloff/source/xforms/xformsexport.cxx +++ b/xmloff/source/xforms/xformsexport.cxx @@ -659,9 +659,9 @@ OUString xforms_bool( const Any& rAny ) void xforms_formatDate( OUStringBuffer& aBuffer, const util::Date& rDate ) { - aBuffer.append(OUString::number(static_cast<sal_Int32>( rDate.Year ) ) - + "-" + OUString::number(static_cast<sal_Int32>( rDate.Month )) - + "-" + OUString::number(static_cast<sal_Int32>( rDate.Day )) ); + aBuffer.append(OUString::number(static_cast<sal_Int32>( rDate.Year ) )) + .append("-").append(OUString::number(static_cast<sal_Int32>( rDate.Month ))) + .append("-").append(OUString::number(static_cast<sal_Int32>( rDate.Day ))); } void xforms_formatTime( OUStringBuffer& aBuffer, const css::util::Time& rTime ) |