From 17c936bca548acc93d6b2e70593bc711c0e6b8a4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 28 May 2018 11:27:37 +0200 Subject: loplugin:unusedfields-in-constructor in various Change-Id: Ie0fb647938e3cf730976fb2e435b92bfd67ef645 Reviewed-on: https://gerrit.libreoffice.org/54998 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppuhelper/source/propertysetmixin.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cppuhelper') diff --git a/cppuhelper/source/propertysetmixin.cxx b/cppuhelper/source/propertysetmixin.cxx index 88e104d90453..84f2432b7db7 100644 --- a/cppuhelper/source/propertysetmixin.cxx +++ b/cppuhelper/source/propertysetmixin.cxx @@ -406,7 +406,6 @@ private: bool isDefaulted, bool wrapOptional); css::uno::Reference< css::uno::XComponentContext > const & m_context; - css::uno::Sequence< rtl::OUString > m_absentOptional; css::uno::Type m_type; css::uno::Reference< css::reflection::XIdlClass > m_idlClass; }; @@ -417,7 +416,7 @@ PropertySetMixinImpl::Impl::Impl( css::uno::Sequence< rtl::OUString > const & absentOptional, css::uno::Type const & type): implements(theImplements), disposed(false), m_context(context), - m_absentOptional(absentOptional), m_type(type) + m_type(type) { assert(context.is()); assert( @@ -444,7 +443,7 @@ PropertySetMixinImpl::Impl::Impl( nullptr, anyEx ); } std::vector< rtl::OUString > handleNames; - initProperties(ifc, m_absentOptional, &handleNames); + initProperties(ifc, absentOptional, &handleNames); std::vector< rtl::OUString >::size_type size = handleNames.size(); assert(size <= SAL_MAX_INT32); handleMap.realloc(static_cast< sal_Int32 >(size)); -- cgit