diff options
author | qzheng <qzheng@suse.com> | 2017-11-14 15:19:26 +0800 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-11-22 21:18:41 +0100 |
commit | 1783b33b52c4332be6163d15ae78bbeb4e16c172 (patch) | |
tree | 02a447f3a9f73d203a47dac5dbe0ed6fb11e26f1 /starmath | |
parent | 95da9d4c8f320d865939ef2cea268ad1aac20a8e (diff) |
tdf#112689 Replace chained O(U)StringBuffer::append with operator+
Change OUStringBuffer::append() to operator+.
Change-Id: I13232cb69b1d62acfcf15d5ba5a2d72e5ab5d253
Reviewed-on: https://gerrit.libreoffice.org/44703
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/dialog.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index f710aa1988f0..e02ad89b86c6 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1484,12 +1484,11 @@ IMPL_LINK_NOARG( SmSymbolDialog, GetClickHdl, Button*, void ) const SmSym *pSym = GetSymbol(); if (pSym) { - OUStringBuffer aText; - aText.append('%').append(pSym->GetName()).append(' '); + OUString aText = "%" + pSym->GetName() + " "; rViewSh.GetViewFrame()->GetDispatcher()->ExecuteList( SID_INSERTSYMBOL, SfxCallMode::RECORD, - { new SfxStringItem(SID_INSERTSYMBOL, aText.makeStringAndClear()) }); + { new SfxStringItem(SID_INSERTSYMBOL, aText) }); } } |