summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-12-14 12:10:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-14 12:56:34 +0100
commit9ac5ef97aea670631a0dab45abeacb4180eab6d2 (patch)
tree64e7b1229c13da7d48be9dd82b4f83065872af32 /include
parent9cfcf83f53e0ae897b30705f790c6ebe0b86932e (diff)
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@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/rtl/strbuf.hxx2
-rw-r--r--include/rtl/ustrbuf.hxx2
2 files changed, 2 insertions, 2 deletions
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);
}