diff options
author | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-08 15:14:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-08 15:17:22 +0000 |
commit | 164ac84e28df50911a8c20f78119d05e21086c6c (patch) | |
tree | 1dc5cec292f2072e6f42a1d19f3a857ef1bb8793 /desktop/source/app/cmdlineargs.cxx | |
parent | d2602cabe651b43b8354eaee9038fc90798e28e2 (diff) |
use RTL_CONSTASCII_USTRINGPARAM
Diffstat (limited to 'desktop/source/app/cmdlineargs.cxx')
-rw-r--r-- | desktop/source/app/cmdlineargs.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
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 ); |