diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 11:53:41 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 12:58:04 -0500 |
commit | 343bd286c9693c7411bb7e622b4d487b8205fc10 (patch) | |
tree | a5f99f7366bb00d8a5bc7776f30f7f4f9657114f /odk/examples/cpp/DocumentLoader | |
parent | 8c525962030bb5b26a8ee84ba49b4bfd557fe3d4 (diff) |
targeted string re-work
Change-Id: Icdf89cd23f34b9d599512414b14907c9ac67cffb
Diffstat (limited to 'odk/examples/cpp/DocumentLoader')
-rw-r--r-- | odk/examples/cpp/DocumentLoader/DocumentLoader.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx index 47daa7559af0..a41008172fc8 100644 --- a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx +++ b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx @@ -72,7 +72,7 @@ using ::rtl::OUStringToOString; //============================================================================ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) { - OUString sConnectionString(RTL_CONSTASCII_USTRINGPARAM("uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager")); + OUString sConnectionString("uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager"); sal_Int32 nCount = (sal_Int32)rtl_getAppCommandArgCount(); @@ -101,7 +101,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) */ Reference< XInterface > xInterface = xMultiComponentFactoryClient->createInstanceWithContext( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.bridge.UnoUrlResolver")), + OUString("com.sun.star.bridge.UnoUrlResolver"), xComponentContext ); Reference< XUnoUrlResolver > resolver( xInterface, UNO_QUERY ); @@ -122,7 +122,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) // gets the server component context as property of the office component factory Reference< XPropertySet > xPropSet( xInterface, UNO_QUERY ); - xPropSet->getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("DefaultContext")) ) >>= xComponentContext; + xPropSet->getPropertyValue( OUString("DefaultContext") ) >>= xComponentContext; // gets the service manager from the office Reference< XMultiComponentFactory > xMultiComponentFactoryServer( @@ -133,7 +133,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) */ Reference < XComponentLoader > xComponentLoader( xMultiComponentFactoryServer->createInstanceWithContext( - OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Desktop" ) ), + OUString( "com.sun.star.frame.Desktop" ), xComponentContext ), UNO_QUERY ); /* Loads a component specified by an URL into the specified new or existing @@ -147,7 +147,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) osl::FileBase::getAbsoluteFileURL( sWorkingDir, sDocPathUrl, sAbsoluteDocUrl); Reference< XComponent > xComponent = xComponentLoader->loadComponentFromURL( - sAbsoluteDocUrl, OUString( RTL_CONSTASCII_USTRINGPARAM("_blank") ), 0, + sAbsoluteDocUrl, OUString( "_blank" ), 0, Sequence < ::com::sun::star::beans::PropertyValue >() ); // dispose the local service manager |