summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-21 18:15:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-22 11:50:56 +0200
commitc5ea059a1def974d798a6218c5cc6cffcb3a00ab (patch)
tree135f96db882b1f8baeeac048fe718aac5d675761 /vcl
parent4489418cc7e439708e091e5c7f379dd78f6cfc1b (diff)
no need to create a temporary when appending to OUStringBuffer
Change-Id: If31ac18f08618f805d82c0e49179e3ae9afb124f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114466 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/window.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 08b07aadbd17..a7aeb0c7f9c3 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -295,7 +295,7 @@ void Window::dispose()
aTempStr.append("Window (");
aTempStr.append(lcl_createWindowInfo(this));
aTempStr.append(") with live SystemWindows destroyed: ");
- aTempStr.append(aErrorStr.toString());
+ aTempStr.append(aErrorStr);
OSL_FAIL(aTempStr.getStr());
// abort in debug builds, must be fixed!
Application::Abort(OStringToOUString(
@@ -319,7 +319,7 @@ void Window::dispose()
OStringBuffer aTempStr( "Window (" );
aTempStr.append(lcl_createWindowInfo(this));
aTempStr.append(") with live SystemWindows destroyed: ");
- aTempStr.append(aErrorStr.toString());
+ aTempStr.append(aErrorStr);
OSL_FAIL( aTempStr.getStr() );
Application::Abort(OStringToOUString(aTempStr.makeStringAndClear(), RTL_TEXTENCODING_UTF8)); // abort in debug builds, this must be fixed!
}