summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmlcss1.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-15 10:14:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-15 13:26:08 +0000
commit2e5ec4f5b6cf295c64598c4284f01814d218c489 (patch)
tree703704f70f86cc24bdc043ff8d16570bb3cb2f59 /sw/source/filter/html/htmlcss1.cxx
parentba27366f3d6bc6b209ecd5c5cb79a9ee5315316a (diff)
Related: #i17171# big xub_Strlen -> sal_Int32 changes
Change-Id: I31bce794c95062abfa1171c13cf565498688b5f3
Diffstat (limited to 'sw/source/filter/html/htmlcss1.cxx')
-rw-r--r--sw/source/filter/html/htmlcss1.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx
index 92af2f9401cb..e78e6d0c06b7 100644
--- a/sw/source/filter/html/htmlcss1.cxx
+++ b/sw/source/filter/html/htmlcss1.cxx
@@ -37,7 +37,6 @@
#include <editeng/frmdiritem.hxx>
#include <svtools/htmltokn.h>
#include <svtools/htmlkywd.hxx>
-#include <tools/string.hxx>
#include <fmtpdsc.hxx>
#include <fmtanchr.hxx>
#include <fmtornt.hxx>
@@ -1734,14 +1733,8 @@ sal_Bool SwHTMLParser::FileDownload( const OUString& rURL,
aStream << *pStream;
aStream.Seek( STREAM_SEEK_TO_END );
- OSL_ENSURE( aStream.Tell() < STRING_MAXLEN,
- "File zu lang fuer einen String, Ende abgeschnitten" );
- xub_StrLen nLen = aStream.Tell() < STRING_MAXLEN
- ? (xub_StrLen)aStream.Tell()
- : STRING_MAXLEN;
-
- rStr = OUString( (const sal_Char *)aStream.GetData(), nLen
- , GetSrcEncoding() );
+ rStr = OUString((const sal_Char *)aStream.GetData(), aStream.Tell(),
+ GetSrcEncoding());
}