From 164ac84e28df50911a8c20f78119d05e21086c6c Mon Sep 17 00:00:00 2001 From: Gert Faller Date: Mon, 8 Nov 2010 15:14:32 +0000 Subject: use RTL_CONSTASCII_USTRINGPARAM --- desktop/source/app/cmdlineargs.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'desktop/source/app/cmdlineargs.cxx') diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx index 71e749510375..bb9599bf71c4 100644 --- a/desktop/source/app/cmdlineargs.cxx +++ b/desktop/source/app/cmdlineargs.cxx @@ -138,8 +138,8 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier ) Reference< XExternalUriReferenceTranslator > xTranslator( xMS->createInstance( - OUString::createFromAscii( - "com.sun.star.uri.ExternalUriReferenceTranslator")), + OUString(RTL_CONSTASCII_USTRINGPARAM( + "com.sun.star.uri.ExternalUriReferenceTranslator"))), UNO_QUERY); // parse command line arguments @@ -168,7 +168,7 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier ) break; } // convert file URLs to internal form #112849# - if (aArg.indexOf(OUString::createFromAscii("file:"))==0 && + if (aArg.indexOf(OUString(RTL_CONSTASCII_USTRINGPARAM("file:")))==0 && xTranslator.is()) { OUString tmp(xTranslator->translateToInternal(aArg)); @@ -982,8 +982,6 @@ sal_Bool CommandLineArgs::GetConversionOut( ::rtl::OUString& rPara ) const return m_aStrSetParams[ CMD_STRINGPARAM_CONVERSIONOUT ]; } - - sal_Bool CommandLineArgs::IsEmpty() const { osl::MutexGuard aMutexGuard( m_aMutex ); -- cgit