From 3817965ded6c7ed915e4f9599e18b3e8abdaca44 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 May 2022 14:33:06 +0200 Subject: add SvStream::ReadLine(OStringBuffer... to reduce OString allocation and use it where possible Change-Id: I3efc7a642f73661ce606c917c0323ba9948521c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134265 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/ui/dbui/mmresultdialogs.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/ui/dbui') diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx index 1727a1bbb758..b2db4782bd6c 100644 --- a/sw/source/ui/dbui/mmresultdialogs.cxx +++ b/sw/source/ui/dbui/mmresultdialogs.cxx @@ -1187,7 +1187,7 @@ IMPL_LINK_NOARG(SwMMResultEmailDialog, SendDocumentsHdl_Impl, weld::Button&, voi OSL_FAIL("no output file created?"); continue; } - OString sLine; + OStringBuffer sLine; bool bDone = pInStream->ReadLine( sLine ); while ( bDone ) { -- cgit