longparas: drop STRING_MAXLEN use now

Change-Id: Iaaca13e732c234e9051be0ab66a7625f9c106eea
This commit is contained in:
Caolán McNamara
2014-01-14 09:50:47 +00:00
parent ba4a888ea7
commit e576b083c8
2 changed files with 1 additions and 10 deletions

View File

@@ -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>

View File

@@ -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() ) ||