summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-26 07:15:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-26 09:24:39 +0200
commit0f00c7f42403ad037a5c64adf777be7da87732f1 (patch)
treef71ae49fe858a1b4a632451e0b7d97a9cad2ed7b /include
parent81993f13f2300028f861bba8b43fad91bba21bf9 (diff)
Missing 'const'
Apparently typos in 0c8fa58a2d73702770687ed15b98822d09f96ac3 "Support ConstCharArrayDetector also for UTF-16 arrays" that went unnoticed as for a const OUString s, s == u"..." could still pick the bool operator ==(OUString const &, sal_Unicode const *) overload. Change-Id: I61344ef2912fffca3cccf375e2e4c2be9beca604 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101377 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/rtl/ustring.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx
index 5f0c1032c603..d86602e9f2e3 100644
--- a/include/rtl/ustring.hxx
+++ b/include/rtl/ustring.hxx
@@ -1827,7 +1827,7 @@ public:
#if defined LIBO_INTERNAL_ONLY
/** @overload @since LibreOffice 5.3 */
template<typename T> friend typename libreoffice_internal::ConstCharArrayDetector<T, bool>::TypeUtf16
- operator ==(OUString & string, T & literal) {
+ operator ==(OUString const & string, T & literal) {
return
rtl_ustr_reverseCompare_WithLength(
string.pData->buffer, string.pData->length,
@@ -1838,7 +1838,7 @@ public:
}
/** @overload @since LibreOffice 5.3 */
template<typename T> friend typename libreoffice_internal::ConstCharArrayDetector<T, bool>::TypeUtf16
- operator ==(T & literal, OUString & string) {
+ operator ==(T & literal, OUString const & string) {
return
rtl_ustr_reverseCompare_WithLength(
libreoffice_internal::ConstCharArrayDetector<T>::toPointer(
@@ -1849,7 +1849,7 @@ public:
}
/** @overload @since LibreOffice 5.3 */
template<typename T> friend typename libreoffice_internal::ConstCharArrayDetector<T, bool>::TypeUtf16
- operator !=(OUString & string, T & literal) {
+ operator !=(OUString const & string, T & literal) {
return
rtl_ustr_reverseCompare_WithLength(
string.pData->buffer, string.pData->length,
@@ -1860,7 +1860,7 @@ public:
}
/** @overload @since LibreOffice 5.3 */
template<typename T> friend typename libreoffice_internal::ConstCharArrayDetector<T, bool>::TypeUtf16
- operator !=(T & literal, OUString & string) {
+ operator !=(T & literal, OUString const & string) {
return
rtl_ustr_reverseCompare_WithLength(
libreoffice_internal::ConstCharArrayDetector<T>::toPointer(