summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-23 17:24:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-23 23:16:44 +0000
commit0dbc4fa3efdea90ba23e17e12c2bfe15d763acbf (patch)
tree857875b2edaee72abb836c8235c4bb87e6e6a18b /linguistic
parent2dba28faae2266e72c05d8f3d55bfbc3e5771adb (diff)
add string::strip, can replace EraseLeadingAndTrailingChars
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/dicimp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index 22927eb4d163..8ebb01169c16 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -41,6 +41,7 @@
#include <tools/string.hxx>
#include <tools/urlobj.hxx>
#include <comphelper/processfactory.hxx>
+#include <comphelper/string.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <com/sun/star/ucb/XSimpleFileAccess.hpp>
@@ -88,7 +89,7 @@ static sal_Bool getTag(const ByteString &rLine,
if (nPos == STRING_NOTFOUND)
return sal_False;
- rTagValue = rLine.Copy( nPos + sal::static_int_cast< xub_StrLen >(strlen( pTagName )) ).EraseLeadingAndTrailingChars();
+ rTagValue = comphelper::string::strip(rLine.Copy(nPos + sal::static_int_cast< xub_StrLen >(strlen( pTagName ))), ' ');
return sal_True;
}