summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/inc/pch/precompiled_svt.hxx1
-rw-r--r--svtools/source/svhtml/parhtml.cxx10
2 files changed, 1 insertions, 10 deletions
diff --git a/svtools/inc/pch/precompiled_svt.hxx b/svtools/inc/pch/precompiled_svt.hxx
index 9e1813fe6090..e1d5c621d1e3 100644
--- a/svtools/inc/pch/precompiled_svt.hxx
+++ b/svtools/inc/pch/precompiled_svt.hxx
@@ -381,7 +381,6 @@
#include <tools/shl.hxx>
#include <tools/solar.h>
#include <tools/stream.hxx>
-#include <tools/string.hxx>
#include <tools/tenccvt.hxx>
#include <tools/time.hxx>
#include <tools/urlobj.hxx>
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index b8076fe836ef..b892cc4f9d41 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -22,7 +22,6 @@
#include <stdio.h>
#include <comphelper/string.hxx>
#include <tools/stream.hxx>
-#include <tools/string.hxx>
#include <tools/debug.hxx>
#include <tools/color.hxx>
#include <rtl/ustrbuf.hxx>
@@ -783,8 +782,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak )
default:
bEqSignFound = false;
- if( (nNextCh==cBreak && !cQuote) ||
- (sal_uLong(aToken.getLength()) + MAX_LEN) > sal_uLong(STRING_MAXLEN & ~1 ))
+ if (nNextCh == cBreak && !cQuote)
bContinue = false;
else
{
@@ -794,12 +792,6 @@ int HTMLParser::ScanText( const sal_Unicode cBreak )
if( MAX_LEN == sTmpBuffer.getLength() )
{
aToken += sTmpBuffer.makeStringAndClear();
- if( (sal_uLong(aToken.getLength()) + MAX_LEN) >
- sal_uLong(STRING_MAXLEN & ~1 ) )
- {
- nNextCh = GetNextChar();
- return HTML_TEXTTOKEN;
- }
}
if( ( sal_Unicode(EOF) == (nNextCh = GetNextChar()) &&
rInput.IsEof() ) ||