summaryrefslogtreecommitdiffstats
path: root/sal/inc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-03-08 01:14:39 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-03-12 13:35:58 +0100
commit91752ecd4ededaaf44f5ac870b3c01dd17b5d3c9 (patch)
tree9e1f276d34f402ab6724daf9bdb98f5f112bca82 /sal/inc
parentforgot to disable mixed char and const char overloads (diff)
downloadcore-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.hxx3
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
}
/**