sw/source/core/tox/ToxWhitespaceStripper.cxx |    2 +-
 sw/source/uibase/misc/glosdoc.cxx            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 43f3f34b01995b7192c7df34635cf0b4226eeefa
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Aug 28 12:52:15 2020 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Sat Aug 29 08:10:39 2020 +0200

    Use OUStringBuffer::makeStringAndClear
    
    Change-Id: I2b740fdb18bdb227806b7cce72639bb8f72e5a66
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101578
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/sw/source/core/tox/ToxWhitespaceStripper.cxx 
b/sw/source/core/tox/ToxWhitespaceStripper.cxx
index b2fe68727714..28c9056ce365 100644
--- a/sw/source/core/tox/ToxWhitespaceStripper.cxx
+++ b/sw/source/core/tox/ToxWhitespaceStripper.cxx
@@ -42,7 +42,7 @@ ToxWhitespaceStripper::ToxWhitespaceStripper(const OUString& 
inputString)
         buffer.truncate(buffer.getLength() - 1);
     }
     mNewPositions.push_back(buffer.getLength());
-    mStripped = buffer.getStr();
+    mStripped = buffer.makeStringAndClear();
 }
 
 
diff --git a/sw/source/uibase/misc/glosdoc.cxx 
b/sw/source/uibase/misc/glosdoc.cxx
index d0f6c2db9848..6c047877cded 100644
--- a/sw/source/uibase/misc/glosdoc.cxx
+++ b/sw/source/uibase/misc/glosdoc.cxx
@@ -341,7 +341,7 @@ static OUString lcl_makePath(const std::vector<OUString>& 
rPaths)
         const INetURLObject aTemp(*aIt);
         aPath.append(aTemp.GetFull());
     }
-    return aPath.getStr();
+    return aPath.makeStringAndClear();
 }
 
 void SwGlossaries::UpdateGlosPath(bool bFull)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to