From c5ea059a1def974d798a6218c5cc6cffcb3a00ab Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Apr 2021 18:15:57 +0200 Subject: 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 --- vcl/source/window/window.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') 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! } -- cgit