[Libreoffice-commits] .: editeng/source
Stephan Bergmann
sbergmann at kemper.freedesktop.org
Wed Jun 13 07:43:26 PDT 2012
editeng/source/editeng/editdoc.cxx | 5 -----
1 file changed, 5 deletions(-)
New commits:
commit 59f5d8f54bd485f828aa1266b2bc11a9b05bd1e7
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Jun 13 16:37:39 2012 +0200
Remove unnecessary size-too-large check
...it is done in UniString(rtl::OUString const&) ctor anyway
Change-Id: I890ab21a6c04fe0ddc0a9b2c9a356359984e516e
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index 0ef70bb..59f4524 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -2045,11 +2045,6 @@ XubString EditDoc::GetText( LineEnd eEnd ) const
if ( 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);
xub_Unicode* pCur = newStr->buffer;
More information about the Libreoffice-commits
mailing list