From 3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 30 Oct 2015 08:40:11 +0200 Subject: UNO: no need to use OUString constructor when calling createInstance Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- codemaker/source/cppumaker/cpputype.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'codemaker') diff --git a/codemaker/source/cppumaker/cpputype.cxx b/codemaker/source/cppumaker/cpputype.cxx index c1a96e694dce..9feace203404 100644 --- a/codemaker/source/cppumaker/cpputype.cxx +++ b/codemaker/source/cppumaker/cpputype.cxx @@ -3514,10 +3514,10 @@ void ServiceType::dumpHxxFile( << indent() << "the_instance = ::css::uno::Reference< " << scopedBaseName << (" >(the_context->getServiceManager()->" - "createInstanceWithContext(::rtl::OUString(" + "createInstanceWithContext(" " \"") << name_ - << "\" ), the_context), ::css::uno::UNO_QUERY);\n#endif\n"; + << "\", the_context), ::css::uno::UNO_QUERY);\n#endif\n"; dec(); o << indent() << "} catch (const ::css::uno::RuntimeException &) {\n"; @@ -3663,9 +3663,9 @@ void ServiceType::dumpHxxFile( << indent() << "the_instance = ::css::uno::Reference< " << scopedBaseName << (" >(the_context->getServiceManager()->" - "createInstanceWithArgumentsAndContext(::rtl::OUString(" + "createInstanceWithArgumentsAndContext(" " \"") - << name_ << "\" ), "; + << name_ << "\", "; if (rest) { o << codemaker::cpp::translateUnoToCppIdentifier( u2b(i->parameters.back().name), "param", -- cgit