Kaydet (Commit) 59f5d8f5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove unnecessary size-too-large check

...it is done in UniString(rtl::OUString const&) ctor anyway

Change-Id: I890ab21a6c04fe0ddc0a9b2c9a356359984e516e
üst 874926b2
...@@ -2045,11 +2045,6 @@ XubString EditDoc::GetText( LineEnd eEnd ) const ...@@ -2045,11 +2045,6 @@ XubString EditDoc::GetText( LineEnd eEnd ) const
if ( nSepSize ) if ( nSepSize )
nLen += (nNodes - 1) * nSepSize; nLen += (nNodes - 1) * nSepSize;
if ( nLen > 0xFFFb / sizeof(xub_Unicode) )
{
OSL_FAIL( "Text too large for String" );
return rtl::OUString();
}
rtl_uString* newStr = comphelper::string::rtl_uString_alloc(nLen); rtl_uString* newStr = comphelper::string::rtl_uString_alloc(nLen);
xub_Unicode* pCur = newStr->buffer; xub_Unicode* pCur = newStr->buffer;
......
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