oox/source/dump/dumperbase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2428b365355d7ec6a1372c58cff1a4f1b13cb14e Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Aug 28 12:48:06 2020 +0200 Commit: Stephan Bergmann <sberg...@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 <sberg...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits