From e965798caf75054d8fc826a4cfa33524cbbcec42 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 12 Dec 2014 12:23:11 +0100 Subject: svtools: Use appropriate OUString functions on string constants Change-Id: I8799033322d345b2f146c3577d3d264448252816 --- svtools/source/svhtml/parhtml.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'svtools/source/svhtml') 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); } -- cgit