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 /svx | |
parent | e4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff) |
remove [Byte]String::EraseAllChars
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/layctrl.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/layctrl.cxx b/svx/source/tbxctrls/layctrl.cxx index c2171261a3ce..314865e8265e 100644 --- a/svx/source/tbxctrls/layctrl.cxx +++ b/svx/source/tbxctrls/layctrl.cxx @@ -42,6 +42,7 @@ #include "svx/layctrl.hxx" #include <svx/dialmgr.hxx> #include <comphelper/processfactory.hxx> +#include <comphelper/string.hxx> #include <svtools/colorcfg.hxx> // namespaces @@ -673,9 +674,9 @@ void ColumnsWindow::Paint( const Rectangle& ) SetFillColor( aFaceColor ); String aText; if ( nCol ) - aText = String( String::CreateFromInt32(nCol) ); + aText = String::CreateFromInt32(nCol); else - aText = Button::GetStandardText( BUTTON_CANCEL ).EraseAllChars( '~' ); + aText = comphelper::string::remove(Button::GetStandardText(BUTTON_CANCEL), '~'); Size aTextSize(GetTextWidth( aText ), GetTextHeight()); DrawText( Point( ( aSize.Width() - aTextSize.Width() ) / 2, aSize.Height() - nTextHeight + 2 ), aText ); |