diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-13 12:51:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-13 16:47:32 +0000 |
commit | 13d3ae64dbf2ac4bda8e831c1da890b09024a8bb (patch) | |
tree | 5097d7b6d54186490452a62adc3e84634a0d8d4e /forms | |
parent | 25ae332bbafd0cb416a6a5c0db467e501661c679 (diff) |
make more use of OUStringBuffer::append(OUStringConcat)
where we can avoid constructing temporary OUStrings
Change-Id: I0eacd68a8d1b450894c2ea769055f16886b78ad0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148780
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/xforms/model_ui.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/forms/source/xforms/model_ui.cxx b/forms/source/xforms/model_ui.cxx index 616ea8863180..e8208565f4fe 100644 --- a/forms/source/xforms/model_ui.cxx +++ b/forms/source/xforms/model_ui.cxx @@ -159,8 +159,7 @@ static void lcl_OutName( OUStringBuffer& rBuffer, OUString sPrefix = xNode->getPrefix(); if( !sPrefix.isEmpty() ) { - rBuffer.insert( 0, ':' ); - rBuffer.insert( 0, sPrefix ); + rBuffer.insert( 0, sPrefix + ":" ); } } @@ -194,8 +193,7 @@ static void lcl_OutInstance( OUStringBuffer& rBuffer, sInstanceName = sId; } - rBuffer.insert( 0, sInstanceName ); - rBuffer.insert( 0, "instance('" ); + rBuffer.insert( 0, "instance('" + sInstanceName ); } OUString Model::getDefaultBindingExpressionForNode( |