diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-28 12:48:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-29 08:13:54 +0200 |
commit | 2428b365355d7ec6a1372c58cff1a4f1b13cb14e (patch) | |
tree | 09731fc698b55b06a763781faef946ae3ddcd846 /oox | |
parent | 8029d316d89a6a4ca612e136697532d0accc22fb (diff) |
Simplify some operation involving OUString and OUStringBuffer
Change-Id: I147386464662eb9cad7bcf10cd0d7e6df07cfcf8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101577
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/dump/dumperbase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx index 8fcb7277b2e4..aac2af5ff1eb 100644 --- a/oox/source/dump/dumperbase.cxx +++ b/oox/source/dump/dumperbase.cxx @@ -1595,7 +1595,7 @@ void Output::endItem() { if( mnItemLevel > 0 ) { - maLastItem = OUString( maLine.getStr() + mnLastItem ); + maLastItem = maLine.copy( mnLastItem ).makeStringAndClear(); if( maLastItem.isEmpty() && mnLastItem > 0 && maLine[ mnLastItem - 1 ] == OOX_DUMP_ITEMSEP ) maLine.setLength( mnLastItem - 1 ); --mnItemLevel; |