diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-05 18:03:25 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-03-07 05:57:17 +0000 |
commit | 70f87284c6ce77a49b1fac1431cea206f4b1dfa9 (patch) | |
tree | f979810ab0761169d094385940612aa1477056d6 /cppuhelper | |
parent | 37a6bafea8416541d7d250d66a9e951400b197a3 (diff) |
improve defaultparams loplugin
to catch calling params with defaults like "= OUSString()"
Change-Id: Iad060e318ed492c22f8be44e326174fe6d28fff9
Reviewed-on: https://gerrit.libreoffice.org/22932
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/defaultbootstrap.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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; |