summaryrefslogtreecommitdiff
path: root/include/rtl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-18 14:09:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-18 18:01:26 +0200
commit9c9484f9fb36b8bc21c83e7c66d4c14fdfc1f53f (patch)
treeaa73217bab8ef067cbcf103d9a53416728cbf9a6 /include/rtl
parent36c84b5a22e59a626f1c9e6f3e77968c3802e434 (diff)
make the *StringBuffer::operator OStringView methods explicit
Change-Id: Iab56f58889e01192d1e3187bf07d9d75e1ec1c94 Reviewed-on: https://gerrit.libreoffice.org/81041 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/rtl')
-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 ffb67d25c42d..3be06a31e120 100644
--- a/include/rtl/strbuf.hxx
+++ b/include/rtl/strbuf.hxx
@@ -1036,7 +1036,7 @@ public:
}
#if defined LIBO_INTERNAL_ONLY
- operator OStringView() const
+ explicit operator OStringView() const
{
return OStringView(getStr(), getLength());
}
diff --git a/include/rtl/ustrbuf.hxx b/include/rtl/ustrbuf.hxx
index 1d73a7fbd843..14e5fc6dda6f 100644
--- a/include/rtl/ustrbuf.hxx
+++ b/include/rtl/ustrbuf.hxx
@@ -1635,7 +1635,7 @@ public:
}
#if defined LIBO_INTERNAL_ONLY
- operator OUStringView() const
+ explicit operator OUStringView() const
{
return OUStringView(getStr(), getLength());
}