longparas: drop STRING_MAXLEN use now
Change-Id: Iaaca13e732c234e9051be0ab66a7625f9c106eea
This commit is contained in:
@@ -381,7 +381,6 @@
|
|||||||
#include <tools/shl.hxx>
|
#include <tools/shl.hxx>
|
||||||
#include <tools/solar.h>
|
#include <tools/solar.h>
|
||||||
#include <tools/stream.hxx>
|
#include <tools/stream.hxx>
|
||||||
#include <tools/string.hxx>
|
|
||||||
#include <tools/tenccvt.hxx>
|
#include <tools/tenccvt.hxx>
|
||||||
#include <tools/time.hxx>
|
#include <tools/time.hxx>
|
||||||
#include <tools/urlobj.hxx>
|
#include <tools/urlobj.hxx>
|
||||||
|
@@ -22,7 +22,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <comphelper/string.hxx>
|
#include <comphelper/string.hxx>
|
||||||
#include <tools/stream.hxx>
|
#include <tools/stream.hxx>
|
||||||
#include <tools/string.hxx>
|
|
||||||
#include <tools/debug.hxx>
|
#include <tools/debug.hxx>
|
||||||
#include <tools/color.hxx>
|
#include <tools/color.hxx>
|
||||||
#include <rtl/ustrbuf.hxx>
|
#include <rtl/ustrbuf.hxx>
|
||||||
@@ -783,8 +782,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak )
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
bEqSignFound = false;
|
bEqSignFound = false;
|
||||||
if( (nNextCh==cBreak && !cQuote) ||
|
if (nNextCh == cBreak && !cQuote)
|
||||||
(sal_uLong(aToken.getLength()) + MAX_LEN) > sal_uLong(STRING_MAXLEN & ~1 ))
|
|
||||||
bContinue = false;
|
bContinue = false;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -794,12 +792,6 @@ int HTMLParser::ScanText( const sal_Unicode cBreak )
|
|||||||
if( MAX_LEN == sTmpBuffer.getLength() )
|
if( MAX_LEN == sTmpBuffer.getLength() )
|
||||||
{
|
{
|
||||||
aToken += sTmpBuffer.makeStringAndClear();
|
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()) &&
|
if( ( sal_Unicode(EOF) == (nNextCh = GetNextChar()) &&
|
||||||
rInput.IsEof() ) ||
|
rInput.IsEof() ) ||
|
||||||
|
Reference in New Issue
Block a user