diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-02-06 10:18:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-02-06 10:23:01 +0100 |
commit | 2c03d6fb053319e61ed600a3c22c4fd39da84e4d (patch) | |
tree | 48a0d6bb00ffa4983aed0bbf12c7c0b25eec5f42 /sal | |
parent | d0cfd49dc530574cbbc0a95c173de8936bc9c8ca (diff) |
Remove bogus asserts
...regression introduced with b0ef5cf258f3a84054c052f0a09a208dbc17fdf3 "sal: add
some argument checking assertions for strings and buffers" not being aware of
186990395d72a803dd4a9f087fe4e05f49e69ad2 "Clean up Mac _imp_getProcessLocale:
Introduces OUStringBuffer::appendUninitialized."
Change-Id: I828d98eb52f57f4e39e71ded39ef034e1788f4d1
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/strbuf.cxx | 1 | ||||
-rw-r--r-- | sal/rtl/ustrbuf.cxx | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/sal/rtl/strbuf.cxx b/sal/rtl/strbuf.cxx index bb42dee4a0d4..b88b0d9585c1 100644 --- a/sal/rtl/strbuf.cxx +++ b/sal/rtl/strbuf.cxx @@ -105,7 +105,6 @@ void SAL_CALL rtl_stringbuffer_insert( rtl_String ** This, assert(This); assert(capacity && *capacity >= 0); assert(offset >= 0 && offset <= (**This).length); - assert(len == 0 || str != nullptr); assert(len >= 0); sal_Int32 nOldLen; sal_Char * pBuf; diff --git a/sal/rtl/ustrbuf.cxx b/sal/rtl/ustrbuf.cxx index 2755ca6f2899..7f5d698c76ec 100644 --- a/sal/rtl/ustrbuf.cxx +++ b/sal/rtl/ustrbuf.cxx @@ -129,7 +129,6 @@ void SAL_CALL rtl_uStringbuffer_insert( rtl_uString ** This, assert(This); assert(capacity && *capacity >= 0); assert(offset >= 0 && offset <= (**This).length); - assert(len == 0 || str != nullptr); assert(len >= 0); sal_Int32 nOldLen; sal_Unicode * pBuf; |