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

sal: add back the append / insert assertions that were...

...removed in 2c03d6fb.

Change-Id: I09194c55ac574bbc0f3065360b329fab8f0ba10c
üst f2f3dd24
...@@ -473,6 +473,7 @@ public: ...@@ -473,6 +473,7 @@ public:
*/ */
OStringBuffer & append( const sal_Char * str, sal_Int32 len) OStringBuffer & append( const sal_Char * str, sal_Int32 len)
{ {
assert( len == 0 || str != 0 ); // cannot assert that in rtl_stringbuffer_insert
rtl_stringbuffer_insert( &pData, &nCapacity, getLength(), str, len ); rtl_stringbuffer_insert( &pData, &nCapacity, getLength(), str, len );
return *this; return *this;
} }
...@@ -731,6 +732,7 @@ public: ...@@ -731,6 +732,7 @@ public:
*/ */
OStringBuffer & insert( sal_Int32 offset, const sal_Char * str, sal_Int32 len) OStringBuffer & insert( sal_Int32 offset, const sal_Char * str, sal_Int32 len)
{ {
assert( len == 0 || str != 0 ); // cannot assert that in rtl_stringbuffer_insert
rtl_stringbuffer_insert( &pData, &nCapacity, offset, str, len ); rtl_stringbuffer_insert( &pData, &nCapacity, offset, str, len );
return *this; return *this;
} }
......
...@@ -457,6 +457,7 @@ public: ...@@ -457,6 +457,7 @@ public:
*/ */
OUStringBuffer & append( const sal_Unicode * str, sal_Int32 len) OUStringBuffer & append( const sal_Unicode * str, sal_Int32 len)
{ {
assert( len == 0 || str != 0 ); // cannot assert that in rtl_uStringbuffer_insert
rtl_uStringbuffer_insert( &pData, &nCapacity, getLength(), str, len ); rtl_uStringbuffer_insert( &pData, &nCapacity, getLength(), str, len );
return *this; return *this;
} }
...@@ -798,6 +799,7 @@ public: ...@@ -798,6 +799,7 @@ public:
*/ */
OUStringBuffer & insert( sal_Int32 offset, const sal_Unicode * str, sal_Int32 len) OUStringBuffer & insert( sal_Int32 offset, const sal_Unicode * str, sal_Int32 len)
{ {
assert( len == 0 || str != 0 ); // cannot assert that in rtl_uStringbuffer_insert
rtl_uStringbuffer_insert( &pData, &nCapacity, offset, str, len ); rtl_uStringbuffer_insert( &pData, &nCapacity, offset, str, len );
return *this; return *this;
} }
......
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