svx/source/svdraw/svdmrkv.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit f64779d1ce160a74182459c310156bfa7671ecfb Author: Mike Kaganski <[email protected]> AuthorDate: Thu Nov 20 08:09:45 2025 +0100 Commit: Mike Kaganski <[email protected]> CommitDate: Thu Nov 20 12:43:14 2025 +0100 Avoid useless potential reallocation Append to the buffer may reallocate it, but the result is only needed in following += operator, where the concatenation could be performed without extra overhead. Change-Id: I1cc895044d6f10ed85097ce9511e2c2ec516cb43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194236 Tested-by: Jenkins Reviewed-by: Mike Kaganski <[email protected]> diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx index 2349e644496b..b5d9c7a5cd60 100644 --- a/svx/source/svdraw/svdmrkv.cxx +++ b/svx/source/svdraw/svdmrkv.cxx @@ -1276,9 +1276,7 @@ void SdrMarkView::SetMarkHandlesForLOKit(tools::Rectangle const & rRect, const S aExtraInfo.append(", \"ObjectRectangles\": "_ostr + objectRectangles); } - aExtraInfo.append(handleArrayStr - + "}"); - sSelectionText += ", " + aExtraInfo; + sSelectionText += ", " + aExtraInfo + handleArrayStr + "}"; } }
