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 --- cui/source/options/personalization.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui') diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index 7c6f01a7fe77..ec62fb105353 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -114,9 +114,9 @@ void SvxPersonalizationTabPage::LoadDefaultImages() sal_Int32 nIndex = 0; bool foundOne = false; + OStringBuffer aLine; while (aStream.IsOpen() && !aStream.eof() && nIndex < MAX_DEFAULT_PERSONAS) { - OString aLine; OUString aPersonaSetting, aPreviewFile, aName; sal_Int32 nParseIndex = 0; -- cgit