diff options
-rw-r--r-- | include/rtl/ustring.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx index 14a9d2cf8b36..39567014c395 100644 --- a/include/rtl/ustring.hxx +++ b/include/rtl/ustring.hxx @@ -357,7 +357,7 @@ public: assert( libreoffice_internal::ConstCharArrayDetector<T>::isValid(literal)); pData = NULL; - if (libreoffice_internal::ConstCharArrayDetector<T>::length == 0) { + if SAL_CONSTEXPR (libreoffice_internal::ConstCharArrayDetector<T>::length == 0) { rtl_uString_new(&pData); } else { rtl_uString_newFromLiteral( @@ -620,7 +620,7 @@ public: { assert( libreoffice_internal::ConstCharArrayDetector<T>::isValid(literal)); - if (libreoffice_internal::ConstCharArrayDetector<T>::length == 0) { + if SAL_CONSTEXPR (libreoffice_internal::ConstCharArrayDetector<T>::length == 0) { rtl_uString_new(&pData); } else { rtl_uString_newFromLiteral( |