[Libreoffice-commits] core.git: include/rtl

Noel (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 14 11:57:15 UTC 2020


 include/rtl/strbuf.hxx  |    2 +-
 include/rtl/ustrbuf.hxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9ac5ef97aea670631a0dab45abeacb4180eab6d2
Author:     Noel <noelgrandin at gmail.com>
AuthorDate: Mon Dec 14 12:10:52 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Dec 14 12:56:34 2020 +0100

    remove unnecessary const qualifier from toString
    
    in *StringBuffer
    
    Change-Id: Ifc1a07b2ab47d6853e3e0a39e74741b2e0b488fd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107678
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/include/rtl/strbuf.hxx b/include/rtl/strbuf.hxx
index 83144a74afab..074d1278ea86 100644
--- a/include/rtl/strbuf.hxx
+++ b/include/rtl/strbuf.hxx
@@ -477,7 +477,7 @@ public:
         Return an OString instance reflecting the current content
         of this OStringBuffer.
      */
-    const OString toString() const
+    OString toString() const
     {
         return OString(pData->buffer, pData->length);
     }
diff --git a/include/rtl/ustrbuf.hxx b/include/rtl/ustrbuf.hxx
index 56968def8d71..bd7f77b503b7 100644
--- a/include/rtl/ustrbuf.hxx
+++ b/include/rtl/ustrbuf.hxx
@@ -536,7 +536,7 @@ public:
         Return an OUString instance reflecting the current content
         of this OUStringBuffer.
      */
-    const OUString toString() const
+    OUString toString() const
     {
         return OUString(pData->buffer, pData->length);
     }


More information about the Libreoffice-commits mailing list