diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-18 21:03:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-19 21:11:02 +0000 |
commit | ca02d728082a86780d68ede7b9d565128dbc0434 (patch) | |
tree | 8c0a857ad73f89d592295f99e5f72a0c96e55e57 /cui | |
parent | e4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff) |
remove [Byte]String::EraseAllChars
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optdict.cxx | 5 | ||||
-rw-r--r-- | cui/source/options/optgdlg.cxx | 3 | ||||
-rw-r--r-- | cui/source/options/optgenrl.cxx | 5 |
3 files changed, 7 insertions, 6 deletions
diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx index a8599630077e..6c91c3e3852b 100644 --- a/cui/source/options/optdict.cxx +++ b/cui/source/options/optdict.cxx @@ -34,6 +34,7 @@ #include <svl/eitem.hxx> #include <com/sun/star/frame/XStorable.hpp> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <unotools/intlwrapper.hxx> #include <vcl/svapp.hxx> #include <vcl/msgbox.hxx> @@ -68,11 +69,9 @@ static String getNormDicEntry_Impl( const String &rText ) { String aTmp( rText ); aTmp.EraseTrailingChars( '.' ); - aTmp.EraseAllChars( '=' ); - return aTmp; + return comphelper::string::remove(aTmp, '='); } - // Compare Dictionary Entry result enum CDE_RESULT { CDE_EQUAL, CDE_SIMILAR, CDE_DIFFERENT }; diff --git a/cui/source/options/optgdlg.cxx b/cui/source/options/optgdlg.cxx index 3d2fdb460a66..8978dc1d0998 100644 --- a/cui/source/options/optgdlg.cxx +++ b/cui/source/options/optgdlg.cxx @@ -52,6 +52,7 @@ #include <svtools/accessibilityoptions.hxx> #include <unotools/configitem.hxx> #include <sfx2/objsh.hxx> +#include <comphelper/string.hxx> #include <comphelper/types.hxx> #include <svl/ctloptions.hxx> #include <svtools/langtab.hxx> @@ -775,7 +776,7 @@ OfaViewTabPage::OfaViewTabPage(Window* pParent, const SfxItemSet& rSet ) : String sLabel(aAAPointLimitLabel.GetText()); aMnemonicGenerator.RegisterMnemonic( sLabel ); aMnemonicGenerator.CreateMnemonic( sLabel ); - sLabel.EraseAllChars('~'); + sLabel = comphelper::string::remove(sLabel, '~'); sal_Int32 nLabelWidth = aAAPointLimitLabel.GetTextWidth( sLabel ); nLabelWidth += 3; // small gap diff --git a/cui/source/options/optgenrl.cxx b/cui/source/options/optgenrl.cxx index 75fbb3933b3d..9300bede634a 100644 --- a/cui/source/options/optgenrl.cxx +++ b/cui/source/options/optgenrl.cxx @@ -27,6 +27,7 @@ ************************************************************************/ // include --------------------------------------------------------------- +#include <comphelper/string.hxx> #include <tools/shl.hxx> #include <vcl/svapp.hxx> #include <vcl/msgbox.hxx> @@ -217,8 +218,8 @@ SvxGeneralTabPage::SvxGeneralTabPage( Window* pParent, const SfxItemSet& rCoreSe sName = sText; else sName = sText.GetToken( nIndex, '/' ); - sName.EraseAllChars( '(' ); - sName.EraseAllChars( ')' ); + sName = comphelper::string::remove(sName, '('); + sName = comphelper::string::remove(sName, ')'); if ( sName.Len() > 0 ) (*pCurrent)->SetAccessibleName( sName ); } |