summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-14 09:50:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-14 10:53:29 +0000
commite576b083c88b97750ce261da80c3933cc04725a7 (patch)
tree475075b8c58eb89e194ea4a1e23d8e0fc4d176be /svtools
parentba4a888ea78a7ffd061f4ce8f35454778c036ea5 (diff)
longparas: drop STRING_MAXLEN use now
Change-Id: Iaaca13e732c234e9051be0ab66a7625f9c106eea
Diffstat (limited to 'svtools')
-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() ) ||