[Libreoffice-commits] core.git: oox/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sat Aug 29 06:14:36 UTC 2020
oox/source/dump/dumperbase.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 2428b365355d7ec6a1372c58cff1a4f1b13cb14e
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Aug 28 12:48:06 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Aug 29 08:13:54 2020 +0200
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 at redhat.com>
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;
More information about the Libreoffice-commits
mailing list