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 /basctl | |
parent | e4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff) |
remove [Byte]String::EraseAllChars
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/brkdlg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/basctl/source/basicide/brkdlg.cxx b/basctl/source/basicide/brkdlg.cxx index 0c066a2c0f76..cb26ae3e44f6 100644 --- a/basctl/source/basicide/brkdlg.cxx +++ b/basctl/source/basicide/brkdlg.cxx @@ -39,20 +39,21 @@ #include <basidesh.hxx> #include <basidesh.hrc> #include <iderdll.hxx> +#include <comphelper/string.hxx> #include <sfx2/dispatch.hxx> #include <sfx2/viewfrm.hxx> // FIXME Why does BreakPointDialog allow only sal_uInt16 for break-point line // numbers, whereas BreakPoint supports sal_uLong? -bool lcl_ParseText( String aText, size_t& rLineNr ) +bool lcl_ParseText( const String &rText, size_t& rLineNr ) { // aText should look like "# n" where // n > 0 && n < std::numeric_limits< sal_uInt16 >::max(). // All spaces are ignored, so there can even be spaces within the // number n. (Maybe it would be better to ignore all whitespace instead // of just spaces.) - aText.EraseAllChars(' '); + String aText = comphelper::string::remove(rText, ' '); sal_Unicode cFirst = aText.GetChar(0); if (cFirst != '#' && !(cFirst >= '0' && cFirst <= '9')) return false; |