summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/newstyle.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-18 21:03:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-19 21:11:02 +0000
commitca02d728082a86780d68ede7b9d565128dbc0434 (patch)
tree8c0a857ad73f89d592295f99e5f72a0c96e55e57 /sfx2/source/dialog/newstyle.cxx
parente4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff)
remove [Byte]String::EraseAllChars
Diffstat (limited to 'sfx2/source/dialog/newstyle.cxx')
-rw-r--r--sfx2/source/dialog/newstyle.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/dialog/newstyle.cxx b/sfx2/source/dialog/newstyle.cxx
index 0984e8c62010..3cadcdfdd071 100644
--- a/sfx2/source/dialog/newstyle.cxx
+++ b/sfx2/source/dialog/newstyle.cxx
@@ -30,6 +30,8 @@
#include "precompiled_sfx2.hxx"
// INCLUDE ---------------------------------------------------------------
+#include <comphelper/string.hxx>
+
#include <svl/style.hxx>
#include <sfx2/newstyle.hxx>
@@ -65,7 +67,7 @@ IMPL_LINK( SfxNewStyleDlg, OKHdl, Control *, pControl )
IMPL_LINK_INLINE_START( SfxNewStyleDlg, ModifyHdl, ComboBox *, pBox )
{
- aOKBtn.Enable( pBox->GetText().EraseAllChars().Len() > 0 );
+ aOKBtn.Enable( comphelper::string::remove(pBox->GetText(), ' ').getLength() > 0 );
return 0;
}
IMPL_LINK_INLINE_END( SfxNewStyleDlg, ModifyHdl, ComboBox *, pBox )