diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-21 13:44:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-12-21 13:51:29 +0200 |
commit | f4e703aa39e9c294441b6dd86189d8aff32db8bf (patch) | |
tree | 6e5c3dd04760702e160b2d068704da093c7e6a48 | |
parent | 3785f82e26c33c385494229be3bcfbe2daffe872 (diff) |
loplugin:unusedfields in sfx2,slideshow,starmath,stoc
Change-Id: If3622b23c45dd3a2a4e9869452142d1f6b47919e
-rw-r--r-- | sfx2/source/appl/newhelp.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/dialog/backingwindow.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/dialog/styfitem.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/doc/iframe.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 1 | ||||
-rw-r--r-- | sfx2/source/view/viewimp.hxx | 1 | ||||
-rw-r--r-- | slideshow/source/engine/transitions/doublediamondwipe.hxx | 4 | ||||
-rw-r--r-- | starmath/source/unofilter.cxx | 10 | ||||
-rw-r--r-- | stoc/source/corereflection/base.hxx | 1 | ||||
-rw-r--r-- | stoc/source/corereflection/crefl.cxx | 1 | ||||
-rw-r--r-- | stoc/source/servicemanager/servicemanager.cxx | 1 | ||||
-rw-r--r-- | stoc/source/uriproc/ExternalUriReferenceTranslator.cxx | 10 |
13 files changed, 8 insertions, 35 deletions
diff --git a/sfx2/source/appl/newhelp.hxx b/sfx2/source/appl/newhelp.hxx index a6dcb73e5c18..464e2b36ee43 100644 --- a/sfx2/source/appl/newhelp.hxx +++ b/sfx2/source/appl/newhelp.hxx @@ -493,8 +493,6 @@ friend class SfxHelpIndexWindow_Impl; css::uno::Reference < css::awt::XWindow > xWindow; - css::uno::Reference < css::frame::XDispatchResultListener > - xOpenListener; css::uno::Reference < css::frame::XFrame2 > xFrame; diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 32e88518035f..69b11e7427b5 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -90,7 +90,6 @@ static bool cmpSelectionItems (const ThumbnailViewItem *pItem1, const ThumbnailV BackingWindow::BackingWindow( vcl::Window* i_pParent ) : Window( i_pParent ), - mxDesktop( Desktop::create(comphelper::getProcessComponentContext()) ), mbLocalViewInitialized(false), maButtonsTextColor(officecfg::Office::Common::Help::StartCenter::StartCenterTextColor::get()), mbIsSaveMode( false ), diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx index 90b385b5dcfb..4d36dc3ec894 100644 --- a/sfx2/source/dialog/backingwindow.hxx +++ b/sfx2/source/dialog/backingwindow.hxx @@ -55,7 +55,6 @@ class BackingWindow : public vcl::Window, public VclBuilderContainer css::uno::Reference<css::uno::XComponentContext> mxContext; css::uno::Reference<css::frame::XDispatchProvider> mxDesktopDispatchProvider; css::uno::Reference<css::frame::XFrame> mxFrame; - css::uno::Reference<css::frame::XDesktop2> mxDesktop; /** helper for drag&drop. */ css::uno::Reference<css::datatransfer::dnd::XDropTargetListener> mxDropTargetListener; diff --git a/sfx2/source/dialog/styfitem.cxx b/sfx2/source/dialog/styfitem.cxx index d98a47422361..0a8b7480f336 100644 --- a/sfx2/source/dialog/styfitem.cxx +++ b/sfx2/source/dialog/styfitem.cxx @@ -23,14 +23,6 @@ -class SfxStyleFamilyItem_Impl -{ - Bitmap aBitmap; - Image aImage; -}; - - - // Implementierung des Resource-Konstruktors SfxStyleFamilyItem::SfxStyleFamilyItem( const ResId &rResId ) : diff --git a/sfx2/source/doc/iframe.cxx b/sfx2/source/doc/iframe.cxx index c42b9782afeb..45bd62203e09 100644 --- a/sfx2/source/doc/iframe.cxx +++ b/sfx2/source/doc/iframe.cxx @@ -106,8 +106,6 @@ public: class IFrameWindow_Impl : public vcl::Window { - uno::Reference < frame::XFrame2 > mxFrame; - public: IFrameWindow_Impl( vcl::Window *pParent, bool bHasBorder, diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 56ae242f1d50..e78f955f62f5 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -207,7 +207,6 @@ struct IMPL_SfxBaseModel_DataContainer : public ::sfx2::IModifiableDocument bool m_bExternalTitle ; bool m_bModifiedSinceLastSave ; Reference< view::XPrintable> m_xPrintable ; - Reference< script::provider::XScriptProvider > m_xScriptProvider ; Reference< ui::XUIConfigurationManager2 > m_xUIConfigurationManager; ::rtl::Reference< ::sfx2::DocumentStorageModifyListener > m_pStorageModifyListen ; OUString m_sModuleIdentifier ; diff --git a/sfx2/source/view/viewimp.hxx b/sfx2/source/view/viewimp.hxx index 74e70b1721ee..5780232586f1 100644 --- a/sfx2/source/view/viewimp.hxx +++ b/sfx2/source/view/viewimp.hxx @@ -45,7 +45,6 @@ struct SfxViewShell_Impl ::cppu::OInterfaceContainerHelper aInterceptorContainer; bool m_bControllerSet; SfxShellArr_Impl aArr; - SvBorder aBorder; Size aMargin; sal_uInt16 m_nPrinterLocks; bool m_bCanPrint; diff --git a/slideshow/source/engine/transitions/doublediamondwipe.hxx b/slideshow/source/engine/transitions/doublediamondwipe.hxx index 684a9819ad5f..5415f61ef38c 100644 --- a/slideshow/source/engine/transitions/doublediamondwipe.hxx +++ b/slideshow/source/engine/transitions/doublediamondwipe.hxx @@ -33,10 +33,8 @@ namespace internal { class DoubleDiamondWipe : public ParametricPolyPolygon { public: - DoubleDiamondWipe() : m_unitRect( createUnitRect() ) {} + DoubleDiamondWipe() {} virtual ::basegfx::B2DPolyPolygon operator()( double x ) override; -private: - const ::basegfx::B2DPolyPolygon m_unitRect; }; } diff --git a/starmath/source/unofilter.cxx b/starmath/source/unofilter.cxx index 903e9af99667..00513555c1af 100644 --- a/starmath/source/unofilter.cxx +++ b/starmath/source/unofilter.cxx @@ -26,11 +26,10 @@ class MathTypeFilter : public cppu::WeakImplHelper lang::XServiceInfo > { - uno::Reference<uno::XComponentContext> m_xContext; uno::Reference<lang::XComponent> m_xDstDoc; public: - explicit MathTypeFilter(const uno::Reference<uno::XComponentContext>& xContext); + MathTypeFilter(); virtual ~MathTypeFilter(); // XFilter @@ -46,8 +45,7 @@ public: virtual uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (uno::RuntimeException, std::exception) override; }; -MathTypeFilter::MathTypeFilter(const uno::Reference< uno::XComponentContext >& rxContext) - : m_xContext(rxContext) +MathTypeFilter::MathTypeFilter() { } @@ -124,9 +122,9 @@ uno::Sequence<OUString> MathTypeFilter::getSupportedServiceNames() throw(uno::Ru return aRet; } -extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* SAL_CALL com_sun_star_comp_Math_MathTypeFilter_get_implementation(uno::XComponentContext* pComponent, uno::Sequence<uno::Any> const&) +extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* SAL_CALL com_sun_star_comp_Math_MathTypeFilter_get_implementation(uno::XComponentContext* , uno::Sequence<uno::Any> const&) { - return cppu::acquire(new MathTypeFilter(pComponent)); + return cppu::acquire(new MathTypeFilter); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx index fc081a69f576..f28a600ac75a 100644 --- a/stoc/source/corereflection/base.hxx +++ b/stoc/source/corereflection/base.hxx @@ -82,7 +82,6 @@ class IdlReflectionServiceImpl , public css::lang::XServiceInfo { ::osl::Mutex _aComponentMutex; - css::uno::Reference< css::lang::XMultiServiceFactory > _xMgr; css::uno::Reference< css::container::XHierarchicalNameAccess > _xTDMgr; // caching diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx index 09461f4107c7..3304233caf3f 100644 --- a/stoc/source/corereflection/crefl.cxx +++ b/stoc/source/corereflection/crefl.cxx @@ -60,7 +60,6 @@ static OUString core_getImplementationName() IdlReflectionServiceImpl::IdlReflectionServiceImpl( const Reference< XComponentContext > & xContext ) : OComponentHelper( _aComponentMutex ) - , _xMgr( xContext->getServiceManager(), UNO_QUERY ) , _aElements( CACHE_SIZE ) { xContext->getValueByName( diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index 1fdf14f19a31..b453c95edbb0 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -262,7 +262,6 @@ private: Mutex aMutex; HashSet_Ref aImplementationMap; HashSet_Ref::iterator aIt; - Reference<XInterface > xNext; }; ImplementationEnumeration_Impl::~ImplementationEnumeration_Impl() {} diff --git a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx index 3dde5b31539c..7c81651d87d1 100644 --- a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx +++ b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx @@ -46,9 +46,7 @@ class Translator: private boost::noncopyable { public: - explicit Translator( - css::uno::Reference< css::uno::XComponentContext > const & context): - m_context(context) {} + Translator() {} virtual OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) override; @@ -69,8 +67,6 @@ public: private: virtual ~Translator() {} - - css::uno::Reference< css::uno::XComponentContext > m_context; }; OUString Translator::getImplementationName() @@ -190,10 +186,10 @@ OUString Translator::translateToExternal( } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL -com_sun_star_comp_uri_ExternalUriReferenceTranslator_get_implementation(css::uno::XComponentContext* rxContext, +com_sun_star_comp_uri_ExternalUriReferenceTranslator_get_implementation(css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const &) { - return ::cppu::acquire(new Translator(rxContext)); + return ::cppu::acquire(new Translator); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |