diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 17:51:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 17:51:36 +0100 |
commit | 9d94148b0429acf77880742c0569bbebddd794f9 (patch) | |
tree | c00c90f36e6703c437dc9057ab55cb624633c343 /desktop/source/splash/unxsplash.cxx | |
parent | bca00da68640bb052c1628270ce3924b7228d7b8 (diff) |
desktop: Use appropriate OUString functions on string constants
Change-Id: I5791c212a103fe9c2a5376545944a70454b28bdd
Diffstat (limited to 'desktop/source/splash/unxsplash.cxx')
-rw-r--r-- | desktop/source/splash/unxsplash.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/desktop/source/splash/unxsplash.cxx b/desktop/source/splash/unxsplash.cxx index 9f34c4170324..c41f233227cb 100644 --- a/desktop/source/splash/unxsplash.cxx +++ b/desktop/source/splash/unxsplash.cxx @@ -25,8 +25,6 @@ #include <rtl/ustrbuf.hxx> #include <rtl/math.hxx> -#define PIPE_ARG "--splash-pipe=" - namespace desktop { UnxSplashScreen::UnxSplashScreen( const Reference< uno::XComponentContext >& xCtx ) @@ -104,9 +102,9 @@ UnxSplashScreen::initialize( const ::com::sun::star::uno::Sequence< ::com::sun:: { OUString aArg; osl_getCommandArg( i, &aArg.pData ); - if ( aArg.matchIgnoreAsciiCaseAsciiL( PIPE_ARG, sizeof( PIPE_ARG ) - 1, 0 ) ) + OUString aNum; + if ( aArg.startsWithIgnoreAsciiCase("--splash-pipe=", &aNum) ) { - OUString aNum = aArg.copy( sizeof( PIPE_ARG ) - 1 ); int fd = aNum.toInt32(); m_pOutFd = fdopen( fd, "w" ); #if OSL_DEBUG_LEVEL > 1 |