diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 12:23:11 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 12:23:11 +0100 |
commit | e965798caf75054d8fc826a4cfa33524cbbcec42 (patch) | |
tree | e76eef188955863bf4024c76aa03cc765d894ad2 /svtools/source/svhtml | |
parent | fc45562945127b73d76deb1101ce7a9ba9135054 (diff) |
svtools: Use appropriate OUString functions on string constants
Change-Id: I8799033322d345b2f146c3577d3d264448252816
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 4 |
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); } |