From 70f87284c6ce77a49b1fac1431cea206f4b1dfa9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 5 Mar 2016 18:03:25 +0200 Subject: improve defaultparams loplugin to catch calling params with defaults like "= OUSString()" Change-Id: Iad060e318ed492c22f8be44e326174fe6d28fff9 Reviewed-on: https://gerrit.libreoffice.org/22932 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppuhelper/source/defaultbootstrap.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx index bede6b518af0..037a5897f10d 100644 --- a/cppuhelper/source/defaultbootstrap.cxx +++ b/cppuhelper/source/defaultbootstrap.cxx @@ -93,9 +93,7 @@ cppu::defaultBootstrap_InitialComponentContext(rtl::OUString const & iniUri) true)); assert(!context_values.empty()); css::uno::Reference< css::uno::XComponentContext > context( - createComponentContext( - &context_values[0], context_values.size(), - css::uno::Reference< css::uno::XComponentContext >())); + createComponentContext(&context_values[0], context_values.size())); smgr->setContext(context); cppu::installTypeDescriptionManager(tmgr.get()); return context; -- cgit