diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 08:40:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-30 08:59:59 +0000 |
commit | 3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (patch) | |
tree | 6e7f5d288cf65935b3ed1f0b88200d32d2f016f0 /odk/examples/DevelopersGuide/OfficeDev | |
parent | 2e528df76b168a221c6d251d9b076bce5ba051a3 (diff) |
UNO: no need to use OUString constructor when calling createInstance
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526
Reviewed-on: https://gerrit.libreoffice.org/19682
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev')
-rw-r--r-- | odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_cpp/FlatXml.cxx | 7 |
1 files changed, 3 insertions, 4 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; } |