summaryrefslogtreecommitdiff
path: root/svtools/source/svhtml
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r--svtools/source/svhtml/parhtml.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 4d4da1d50610..14d5c741c57e 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1167,9 +1167,7 @@ int HTMLParser::_GetNextToken()
nCLineNr = GetLineNr();
nCLinePos = GetLinePos();
}
- bDone = aToken.getLength() >= 2 &&
- aToken.copy(aToken.getLength()-2,2).
- equalsAscii( "--" );
+ bDone = aToken.endsWith( "--" );
if( !bDone )
aToken += OUString(nNextCh);
}