Kaydet (Commit) 102b2597 authored tarafından Michael Stahl's avatar Michael Stahl

sal: try to fix prematurely pushed 853c2fc7

Change-Id: Id00e2579edcc9856c0fa3985e34c4a2f3e7ae5ec
üst 853c2fc7
......@@ -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,9 +113,11 @@ public:
: OStringBuffer(static_cast<int>(length))
{
}
#endif
// avoid obvious bugs
explicit OStringBuffer(char) = delete;
explicit OStringBuffer(sal_Unicode) = delete;
#endif
#endif
/**
......
......@@ -92,10 +92,14 @@ public:
rtl_uString_new_WithLength( &pData, length );
}
#if __cplusplus >= 201103L
// GCC 4.6 lacks delegating ctors
#if defined(__clang__) || !defined(__GNUC__) || (__GNUC__ > 4) || (__GNUC_MINOR__ > 6)
explicit OUStringBuffer(unsigned int length)
: OUStringBuffer(static_cast<int>(length))
{
}
#if SAL_TYPES_SIZEOFLONG == 4
// additional overloads for sal_Int32 sal_uInt32
explicit OUStringBuffer(long length)
: OUStringBuffer(static_cast<int>(length))
{
......@@ -104,9 +108,11 @@ public:
: OUStringBuffer(static_cast<int>(length))
{
}
#endif
// avoid obvious bugs
explicit OUStringBuffer(char) = delete;
explicit OUStringBuffer(sal_Unicode) = delete;
#endif
#endif
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment