diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-08 01:14:39 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-12 13:35:58 +0100 |
commit | 91752ecd4ededaaf44f5ac870b3c01dd17b5d3c9 (patch) | |
tree | 9e1f276d34f402ab6724daf9bdb98f5f112bca82 /sal/inc | |
parent | forgot to disable mixed char and const char overloads (diff) | |
download | core-91752ecd4ededaaf44f5ac870b3c01dd17b5d3c9.tar.gz core-91752ecd4ededaaf44f5ac870b3c01dd17b5d3c9.zip |
also check that string literals do not actually trigger OUString ctors
Diffstat (limited to 'sal/inc')
-rw-r--r-- | sal/inc/rtl/ustring.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx index 4d7d5f93330f..37e455a75c51 100644 --- a/sal/inc/rtl/ustring.hxx +++ b/sal/inc/rtl/ustring.hxx @@ -192,6 +192,9 @@ public: throw std::bad_alloc(); #endif } +#ifdef RTL_STRING_UNITTEST + rtl_string_unittest_const_literal = true; +#endif } /** |