From b7ea36101497c275cb08b0e37facbde656197d9b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 22 Nov 2011 23:40:24 +0000 Subject: add stripStart, can replace EraseTrailingChars --- svtools/source/svhtml/htmlsupp.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svtools/source/svhtml') diff --git a/svtools/source/svhtml/htmlsupp.cxx b/svtools/source/svhtml/htmlsupp.cxx index 96cb4f154012..292d36f6a14f 100644 --- a/svtools/source/svhtml/htmlsupp.cxx +++ b/svtools/source/svhtml/htmlsupp.cxx @@ -31,11 +31,11 @@ #include #include -#include - +#include #include #include #include +#include // Table for converting option values into strings static HTMLOptionEnum const aScriptLangOptEnums[] = @@ -135,7 +135,7 @@ void HTMLParser::RemoveSGMLComment( String &rString, sal_Bool bFull ) if( bFull ) { // "//" or "'", maybe preceding CR/LF - rString.EraseTrailingChars(); + rString = comphelper::string::stripEnd(rString, ' '); xub_StrLen nDel = 0, nLen = rString.Len(); if( nLen >= 2 && rString.Copy(nLen-2).CompareToAscii("//") == COMPARE_EQUAL ) -- cgit