diff options
Diffstat (limited to 'odk/examples')
4 files changed, 6 insertions, 8 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx index 0dc302a5eb80..819da9dd6179 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx +++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx @@ -162,7 +162,7 @@ sal_Bool XFlatXml::importer( // create SAX parser that will read the document file // and provide events to xHandler passed to this call Reference < XParser > xSaxParser( m_rServiceFactory->createInstance( - OUString("com.sun.star.xml.sax.Parser")), UNO_QUERY ); + "com.sun.star.xml.sax.Parser"), UNO_QUERY ); OSL_ASSERT(xSaxParser.is()); if(!xSaxParser.is())return sal_False; @@ -212,9 +212,8 @@ sal_Bool XFlatXml::exporter( if (!m_rDocumentHandler.is()) { // get the document writer m_rDocumentHandler = Reference<XExtendedDocumentHandler>( - m_rServiceFactory->createInstance( - OUString("com.sun.star.xml.sax.Writer")), - UNO_QUERY); + m_rServiceFactory->createInstance("com.sun.star.xml.sax.Writer"), + UNO_QUERY); OSL_ASSERT(m_rDocumentHandler.is()); if (!m_rDocumentHandler.is()) return sal_False; } diff --git a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx index fab8b8d9d1f4..c51ca17f8f6c 100644 --- a/odk/examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx +++ b/odk/examples/DevelopersGuide/ProfUNO/CppBinding/office_connect.cxx @@ -64,7 +64,7 @@ SAL_IMPLEMENT_MAIN() // instantiate a sample service with the servicemanager. Reference< XInterface > rInstance = rServiceManager->createInstanceWithContext( - OUString("com.sun.star.bridge.UnoUrlResolver"), + "com.sun.star.bridge.UnoUrlResolver", rComponentContext ); // Query for the XUnoUrlResolver interface diff --git a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx index 6e95f202b672..4606f0b4d1be 100644 --- a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx +++ b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx @@ -95,7 +95,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) */ Reference< XInterface > xInterface = xMultiComponentFactoryClient->createInstanceWithContext( - OUString("com.sun.star.bridge.UnoUrlResolver"), + "com.sun.star.bridge.UnoUrlResolver", xComponentContext ); Reference< XUnoUrlResolver > resolver( xInterface, UNO_QUERY ); diff --git a/odk/examples/cpp/counter/countermain.cxx b/odk/examples/cpp/counter/countermain.cxx index f917a4fe8da5..a00e22143605 100644 --- a/odk/examples/cpp/counter/countermain.cxx +++ b/odk/examples/cpp/counter/countermain.cxx @@ -71,8 +71,7 @@ SAL_IMPLEMENT_MAIN() Reference< XMultiComponentFactory > xMgr = xContext->getServiceManager(); OSL_ENSURE( xMgr.is(), "### cannot get initial service manager!" ); - Reference< XInterface > xx = xMgr->createInstanceWithContext( - OUString("foo.Counter"), xContext); + Reference< XInterface > xx = xMgr->createInstanceWithContext( "foo.Counter", xContext); OSL_ENSURE( xx.is(), "### cannot get service instance of \"foo.Counter\"!" ); |