summaryrefslogtreecommitdiff
path: root/include/rtl/strbuf.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/rtl/strbuf.hxx')
-rw-r--r--include/rtl/strbuf.hxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/rtl/strbuf.hxx b/include/rtl/strbuf.hxx
index 9352d54307c8..5450472c2fe1 100644
--- a/include/rtl/strbuf.hxx
+++ b/include/rtl/strbuf.hxx
@@ -96,6 +96,23 @@ public:
{
rtl_string_new_WithLength( &pData, length );
}
+#if __cplusplus >= 201103L
+ explicit OStringBuffer(unsigned int length)
+ : OStringBuffer(static_cast<int>(length))
+ {
+ }
+ explicit OStringBuffer(long length)
+ : OStringBuffer(static_cast<int>(length))
+ {
+ }
+ explicit OStringBuffer(unsigned long length)
+ : OStringBuffer(static_cast<int>(length))
+ {
+ }
+ // avoid obvious bugs
+ explicit OStringBuffer(char) = delete;
+ explicit OStringBuffer(sal_Unicode) = delete;
+#endif
/**
Constructs a string buffer so that it represents the same