summaryrefslogtreecommitdiff
path: root/oox/source/ole
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-07 15:24:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-08 08:45:56 +0200
commit0e2a6e8ea20d74436b544104969a0fdca0003b59 (patch)
tree6ec960da7b28b9938b531820f8f6e35852adc5d6 /oox/source/ole
parente3828e7bed641bf8475845045accec6131544f42 (diff)
remove some unnecessary use of OUStringBuffer
Change-Id: Ia4e02589d2fe79a27b83200a0e7a528a2c806519 Reviewed-on: https://gerrit.libreoffice.org/38508 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/ole')
-rw-r--r--oox/source/ole/vbacontrol.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/ole/vbacontrol.cxx b/oox/source/ole/vbacontrol.cxx
index eb7a54b94b9c..84402d3a0c3e 100644
--- a/oox/source/ole/vbacontrol.cxx
+++ b/oox/source/ole/vbacontrol.cxx
@@ -119,7 +119,7 @@ OUString VbaControlNamesSet::generateDummyName()
OUString aCtrlName;
do
{
- aCtrlName = OUStringBuffer( maDummyBaseName ).append( ++mnIndex ).makeStringAndClear();
+ aCtrlName = maDummyBaseName + OUString::number( ++mnIndex );
}
while( maCtrlNames.count( aCtrlName ) > 0 );
maCtrlNames.insert( aCtrlName );