diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-22 17:17:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-23 10:10:08 +0000 |
commit | 20153742d2dee2df022275a07cc958b1759b9b72 (patch) | |
tree | a91d3d42faa559783d407bb1fe08f4070d945762 /sfx2 | |
parent | a22ce3e4483f6fe462eaba8826a91355957e3676 (diff) |
add a stripStart, can replace EraseLeadingChars
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/newstyle.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/inc/sfx2/newstyle.hxx b/sfx2/inc/sfx2/newstyle.hxx index 22f47eec8974..32f30d9a56c6 100644 --- a/sfx2/inc/sfx2/newstyle.hxx +++ b/sfx2/inc/sfx2/newstyle.hxx @@ -28,9 +28,9 @@ #ifndef _NEWSTYLE_HXX #define _NEWSTYLE_HXX -#include "sal/config.h" -#include "sfx2/dllapi.h" - +#include <comphelper/string.hxx> +#include <sal/config.h> +#include <sfx2/dllapi.h> #include <vcl/button.hxx> #include <vcl/msgbox.hxx> #include <vcl/combobox.hxx> @@ -57,7 +57,7 @@ public: SfxNewStyleDlg( Window* pParent, SfxStyleSheetBasePool& ); ~SfxNewStyleDlg(); - String GetName() const { return aColBox.GetText().EraseLeadingChars(); } + String GetName() const { return comphelper::string::stripStart(aColBox.GetText(), ' '); } }; #endif |