diff options
Diffstat (limited to 'include/rtl')
-rw-r--r-- | include/rtl/string.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx index 4d229fd86931..3c540198f95f 100644 --- a/include/rtl/string.hxx +++ b/include/rtl/string.hxx @@ -243,6 +243,12 @@ public: rtl_string_newFromStr_WithLength( &pData, &value, 1 ); } +#if defined LIBO_INTERNAL_ONLY && !defined RTL_STRING_UNITTEST_CONCAT + // Catch inadvertent conversions to the above ctor (e.g., from sal_[u]Int8, aka [un]signed + // char): + OString(int) = delete; +#endif + /** New string from a character buffer array. |