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.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/rtl/strbuf.hxx b/include/rtl/strbuf.hxx
index 5450472c2fe1..7c8abf099191 100644
--- a/include/rtl/strbuf.hxx
+++ b/include/rtl/strbuf.hxx
@@ -97,10 +97,14 @@ public:
rtl_string_new_WithLength( &pData, length );
}
#if __cplusplus >= 201103L
+ // GCC 4.6 lacks delegating ctors
+#if defined(__clang__) || !defined(__GNUC__) || (__GNUC__ > 4) || (__GNUC_MINOR__ > 6)
explicit OStringBuffer(unsigned int length)
: OStringBuffer(static_cast<int>(length))
{
}
+#if SAL_TYPES_SIZEOFLONG == 4
+ // additional overloads for sal_Int32 sal_uInt32
explicit OStringBuffer(long length)
: OStringBuffer(static_cast<int>(length))
{
@@ -109,10 +113,12 @@ public:
: OStringBuffer(static_cast<int>(length))
{
}
+#endif
// avoid obvious bugs
explicit OStringBuffer(char) = delete;
explicit OStringBuffer(sal_Unicode) = delete;
#endif
+#endif
/**
Constructs a string buffer so that it represents the same