From 20153742d2dee2df022275a07cc958b1759b9b72 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 22 Nov 2011 17:17:53 +0000 Subject: add a stripStart, can replace EraseLeadingChars --- sfx2/inc/sfx2/newstyle.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sfx2') 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 +#include +#include #include #include #include @@ -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 -- cgit