summaryrefslogtreecommitdiff
path: root/svtools/source/svhtml
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-11 13:15:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-11 14:46:46 +0100
commit8f5629fd5aafc85e509a4160a11a285b0a66e7c0 (patch)
tree143883c85467b5ce9f5c665338e0f8a25067a0cd /svtools/source/svhtml
parent2106d8e648449d34b195068eef5f672a14ea64a8 (diff)
remove EraseLeadingChars and EraseTrailingChars
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
Diffstat (limited to 'svtools/source/svhtml')
-rw-r--r--svtools/source/svhtml/parhtml.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index d1c588cd5e81..36b81ecf73c4 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -153,8 +153,7 @@ sal_uInt32 HTMLOption::GetNumber() const
nToken<HTML_OPTION_CONTEXT_END) ||
nToken==HTML_O_VALUE,
"GetNumber: Option not numerical" );
- String aTmp( aValue );
- aTmp.EraseLeadingChars();
+ String aTmp(comphelper::string::stripStart(aValue, ' '));
sal_Int32 nTmp = aTmp.ToInt32();
return nTmp >= 0 ? (sal_uInt32)nTmp : 0;
}
@@ -164,8 +163,7 @@ sal_Int32 HTMLOption::GetSNumber() const
DBG_ASSERT( (nToken>=HTML_OPTION_NUMBER_START && nToken<HTML_OPTION_NUMBER_END) ||
(nToken>=HTML_OPTION_CONTEXT_START && nToken<HTML_OPTION_CONTEXT_END),
"GetSNumber: Option not numerical" );
- String aTmp( aValue );
- aTmp.EraseLeadingChars();
+ String aTmp(comphelper::string::stripStart(aValue, ' '));
return aTmp.ToInt32();
}