diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-22 23:40:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 10:10:09 +0000 |
commit | b7ea36101497c275cb08b0e37facbde656197d9b (patch) | |
tree | a05e25d4f01c94c69712d17a1ab4cdbc925ef355 /svtools/source/control/inettbc.cxx | |
parent | 62d880f3228c7f5c3f8a1d30f5a5c9ed390a1eb5 (diff) |
add stripStart, can replace EraseTrailingChars
Diffstat (limited to 'svtools/source/control/inettbc.cxx')
-rw-r--r-- | svtools/source/control/inettbc.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/control/inettbc.cxx b/svtools/source/control/inettbc.cxx index 097a8ada8658..6b99f8f54f69 100644 --- a/svtools/source/control/inettbc.cxx +++ b/svtools/source/control/inettbc.cxx @@ -48,6 +48,7 @@ #include <com/sun/star/ucb/XContentAccess.hpp> #include <com/sun/star/ucb/XSortedDynamicResultSetFactory.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <vcl/toolbox.hxx> #include <osl/thread.hxx> #include <osl/mutex.hxx> @@ -1162,7 +1163,7 @@ String SvtURLBox::GetURL() #ifdef WNT // erase trailing spaces on Windows since thay are invalid on this OS and // most of the time they are inserted by accident via copy / paste - aText.EraseTrailingChars(); + aText = comphelper::string::stripEnd(aText, ' '); if ( !aText.Len() ) return aText; // #i9739# @@ -1327,7 +1328,7 @@ sal_Bool SvtURLBox_Impl::TildeParsing( else { // "blabla/" path should be converted to "blabla" - aParseTilde.EraseTrailingChars( '/' ); + aParseTilde = comphelper::string::stripEnd(aParseTilde, '/'); } } else |