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 /starmath/source | |
parent | e4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff) |
remove [Byte]String::EraseAllChars
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/dialog.cxx | 4 | ||||
-rw-r--r-- | starmath/source/view.cxx | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 0daecc2054dd..e9eced85b334 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -32,6 +32,7 @@ #define SMDLL 1 #include "tools/rcid.h" +#include <comphelper/string.hxx> #include <svl/eitem.hxx> #include <svl/intitem.hxx> #include <svl/stritem.hxx> @@ -2267,8 +2268,7 @@ bool SmSymDefineDialog::SelectSymbol(ComboBox &rComboBox, #endif // 'Normalisieren' des SymbolNamens (ohne Leerzeichen) - XubString aNormName (rSymbolName); - aNormName.EraseAllChars(' '); + XubString aNormName(comphelper::string::remove(rSymbolName, ' ')); // und evtl Abweichungen in der Eingabe beseitigen rComboBox.SetText(aNormName); diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index a77a32a92e77..4d3ea9c6bd76 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -41,6 +41,7 @@ #include <comphelper/processfactory.hxx> #include <comphelper/storagehelper.hxx> +#include <comphelper/string.hxx> #include <rtl/logfile.hxx> #include <sfx2/app.hxx> #include <sfx2/dispatch.hxx> @@ -1101,7 +1102,7 @@ Size SmViewShell::GetTextSize(OutputDevice& rDevice, const String& rText, long M for (sal_uInt16 i = 0; i < nLines; i++) { aLine = rText.GetToken(i, '\n'); - aLine.EraseAllChars('\r'); + aLine = comphelper::string::remove(aLine, '\r'); aLine.EraseLeadingChars('\n'); aLine.EraseTrailingChars('\n'); @@ -1192,7 +1193,7 @@ void SmViewShell::DrawText(OutputDevice& rDevice, const Point& rPosition, const for (sal_uInt16 i = 0; i < nLines; i++) { aLine = rText.GetToken(i, '\n'); - aLine.EraseAllChars('\r'); + aLine = comphelper::string::remove(aLine, '\r'); aLine.EraseLeadingChars('\n'); aLine.EraseTrailingChars('\n'); aSize = GetTextLineSize(rDevice, aLine); |