summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-12 18:07:51 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-12 18:14:37 +0200
commitf20162304d73bc01955e9ef6506c3bd1c7016c48 (patch)
tree02db77ed152f635bbd5a22ab064e74c79c6c359c /include
parent7cedeaeba79bdd54b3bcbadb21c51cc535cf4a5d (diff)
Rule out OString(std::nullptr_t)
(This is no issue for OUString, as it has two ctors taking a single pointer argument, so passing a null pointer is ambiguous anyway.) Change-Id: I36f44b29eb84eb83e284fa080d706eabb4b485d5
Diffstat (limited to 'include')
-rw-r--r--include/rtl/string.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rtl/string.hxx b/include/rtl/string.hxx
index 1aeecc0ca0a2..995fe7e39c80 100644
--- a/include/rtl/string.hxx
+++ b/include/rtl/string.hxx
@@ -23,6 +23,7 @@
#include <sal/config.h>
#include <cassert>
+#include <cstddef>
#include <new>
#include <ostream>
#include <string.h>
@@ -256,6 +257,10 @@ public:
}
#endif
+#ifdef LIBO_INTERNAL_ONLY
+ OString(std::nullptr_t) = delete;
+#endif
+
/**
Release the string data.
*/