diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:30:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-07-02 22:30:39 +0200 |
commit | 619c9b494a76b0fb8b0cf6c9b7622f17cf1d5b6c (patch) | |
tree | 989c60a46e4a64659f9bea5b4135ba282b5e9bcc /sd | |
parent | ec0146214165c53a9b82d62b8c1408aaaaf465ca (diff) |
loplugin:casttovoid: sd
Change-Id: I5b83c826da2613e537025f2c849a80468c7d8504
Diffstat (limited to 'sd')
45 files changed, 111 insertions, 258 deletions
diff --git a/sd/qa/unit/import-tests.cxx b/sd/qa/unit/import-tests.cxx index 6f75439da31e..62f2b98f2d88 100644 --- a/sd/qa/unit/import-tests.cxx +++ b/sd/qa/unit/import-tests.cxx @@ -309,15 +309,6 @@ void SdImportTest::testSmoketest() const SdrPage *pPage = pDoc->GetPage (1); CPPUNIT_ASSERT_MESSAGE( "no page", pPage != nullptr ); - const size_t nObjs = pPage->GetObjCount(); - for (size_t i = 0; i < nObjs; i++) - { - SdrObject *pObj = pPage->GetObj(i); - SdrObjKind eKind = (SdrObjKind) pObj->GetObjIdentifier(); - SdrTextObj *pTxt = dynamic_cast<SdrTextObj *>( pObj ); - (void)pTxt; (void)eKind; - } - CPPUNIT_ASSERT_MESSAGE( "changed", !pDoc->IsChanged() ); xDocShRef->DoClose(); diff --git a/sd/source/core/sdpage2.cxx b/sd/source/core/sdpage2.cxx index bf66a0b57338..ca65178faad5 100644 --- a/sd/source/core/sdpage2.cxx +++ b/sd/source/core/sdpage2.cxx @@ -436,7 +436,6 @@ SdrPage* SdPage::Clone() const SdrPage* SdPage::Clone(SdrModel* pNewModel) const { DBG_ASSERT( pNewModel == nullptr, "sd::SdPage::Clone(), new page ignored, please check code! CL" ); - (void)pNewModel; SdPage* pNewPage = new SdPage(*this); pNewPage->lateInit( *this ); diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 6cbbe54b5d2e..fc6fdaa297b2 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -182,7 +182,6 @@ void SdStyleSheetPool::CreateLayoutStyleSheets(const OUString& rLayoutName, bool { const sal_uInt16 nUsedMask = SFXSTYLEBIT_ALL & ~SFXSTYLEBIT_USERDEF; - (void)bCheck; bool bCreated = false; SfxStyleSheetBase* pSheet = nullptr; diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index c3ccb5ee1dd8..2927fb9428bd 100644 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -900,9 +900,8 @@ void CustomAnimationPane::onContextMenu(const OString &rIdent) updateControls(); } -void CustomAnimationPane::DataChanged (const DataChangedEvent& rEvent) +void CustomAnimationPane::DataChanged (const DataChangedEvent&) { - (void)rEvent; UpdateLook(); } diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx index c6aef5197813..b1d803a53078 100644 --- a/sd/source/ui/animations/SlideTransitionPane.cxx +++ b/sd/source/ui/animations/SlideTransitionPane.cxx @@ -528,9 +528,8 @@ void SlideTransitionPane::dispose() PanelLayout::dispose(); } -void SlideTransitionPane::DataChanged (const DataChangedEvent& rEvent) +void SlideTransitionPane::DataChanged (const DataChangedEvent&) { - (void)rEvent; UpdateLook(); } diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx index f23f1fbc6059..95145459fb67 100644 --- a/sd/source/ui/app/optsitem.cxx +++ b/sd/source/ui/app/optsitem.cxx @@ -42,7 +42,6 @@ template< class T > T getSafeValue( const Any& rAny ) bool bOk = (rAny >>= value); DBG_ASSERT( bOk, "SdOptionsItem, wrong type from configuration!" ); - (void)bOk; return value; } diff --git a/sd/source/ui/controller/slidelayoutcontroller.cxx b/sd/source/ui/controller/slidelayoutcontroller.cxx index a65db66226ac..b0fa04755aa9 100644 --- a/sd/source/ui/controller/slidelayoutcontroller.cxx +++ b/sd/source/ui/controller/slidelayoutcontroller.cxx @@ -165,9 +165,8 @@ LayoutToolbarMenu::LayoutToolbarMenu( SlideLayoutController& rController, vcl::W Reference< XPropertySet > xControllerSet( xFrame->getController(), UNO_QUERY_THROW ); xControllerSet->getPropertyValue( "DrawViewMode" ) >>= eMode; } - catch( Exception& e ) + catch( Exception& ) { - (void)e; OSL_ASSERT(false); } diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx index fa97922690b9..8b3d06dcd829 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx @@ -50,10 +50,8 @@ ClientBoxEntry::ClientBoxEntry(const std::shared_ptr<ClientInfo>& pClientInfo) ClientBoxEntry::~ClientBoxEntry() {} -void ClientRemovedListener::disposing( lang::EventObject const & rEvt ) -{ - (void) rEvt; -} +void ClientRemovedListener::disposing( lang::EventObject const & ) +{} ClientRemovedListener::~ClientRemovedListener() { diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index 3bb125de459e..147073b4ed02 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -1101,11 +1101,8 @@ void SdPageObjsTLB::KeyInput( const KeyEvent& rKEvt ) /** * StartDrag-Request */ -void SdPageObjsTLB::StartDrag( sal_Int8 nAction, const Point& rPosPixel) +void SdPageObjsTLB::StartDrag( sal_Int8, const Point& rPosPixel) { - (void)nAction; - (void)rPosPixel; - SdNavigatorWin* pNavWin = nullptr; SvTreeListEntry* pEntry = GetEntry(rPosPixel); diff --git a/sd/source/ui/framework/configuration/Configuration.cxx b/sd/source/ui/framework/configuration/Configuration.cxx index 593742e1deed..5c1b2b0af95e 100644 --- a/sd/source/ui/framework/configuration/Configuration.cxx +++ b/sd/source/ui/framework/configuration/Configuration.cxx @@ -215,9 +215,9 @@ OUString SAL_CALL Configuration::getName() return aString; } -void SAL_CALL Configuration::setName (const OUString& rsName) +void SAL_CALL Configuration::setName (const OUString&) { - (void)rsName; // rsName is ignored. + // ignored. } OUString Configuration::getImplementationName() diff --git a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx index de2d7386fa45..81f102275791 100644 --- a/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx +++ b/sd/source/ui/framework/configuration/ConfigurationControllerResourceManager.cxx @@ -134,10 +134,7 @@ void ConfigurationControllerResourceManager::ActivateResource ( // of registered factories. mpResourceFactoryContainer->RemoveFactoryForReference(xFactory); } - catch (Exception& e) - { - (void)e; - } + catch (Exception&) {} if (xResource.is()) { diff --git a/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.cxx b/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.cxx index 770b6c414db9..96bc91536a0a 100644 --- a/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.cxx +++ b/sd/source/ui/framework/configuration/GenericConfigurationChangeRequest.cxx @@ -67,9 +67,8 @@ OUString SAL_CALL GenericConfigurationChangeRequest::getName() + FrameworkHelper::ResourceIdToString(mxResourceId); } -void SAL_CALL GenericConfigurationChangeRequest::setName (const OUString& rsName) +void SAL_CALL GenericConfigurationChangeRequest::setName (const OUString&) { - (void)rsName; // Ignored. } diff --git a/sd/source/ui/framework/configuration/UpdateRequest.cxx b/sd/source/ui/framework/configuration/UpdateRequest.cxx index fdbb7ca24909..40d6e822e044 100644 --- a/sd/source/ui/framework/configuration/UpdateRequest.cxx +++ b/sd/source/ui/framework/configuration/UpdateRequest.cxx @@ -37,9 +37,8 @@ UpdateRequest::~UpdateRequest() throw() { } -void SAL_CALL UpdateRequest::execute (const Reference<XConfiguration>& rxConfiguration) +void SAL_CALL UpdateRequest::execute (const Reference<XConfiguration>&) { - (void)rxConfiguration; // Do nothing here. The configuration is updated when the request queue // becomes empty. } @@ -49,9 +48,8 @@ OUString SAL_CALL UpdateRequest::getName() return OUString("UpdateRequest"); } -void SAL_CALL UpdateRequest::setName (const OUString& rsName) +void SAL_CALL UpdateRequest::setName (const OUString&) { - (void)rsName; // Ignored. } diff --git a/sd/source/ui/framework/factories/BasicToolBarFactory.cxx b/sd/source/ui/framework/factories/BasicToolBarFactory.cxx index e3f183b0729f..3dd122c4154d 100644 --- a/sd/source/ui/framework/factories/BasicToolBarFactory.cxx +++ b/sd/source/ui/framework/factories/BasicToolBarFactory.cxx @@ -36,13 +36,11 @@ namespace sd { namespace framework { //===== BasicToolBarFactory =================================================== -BasicToolBarFactory::BasicToolBarFactory ( - const Reference<XComponentContext>& rxContext) +BasicToolBarFactory::BasicToolBarFactory () : BasicToolBarFactoryInterfaceBase(m_aMutex), mxConfigurationController(), mxController() { - (void)rxContext; } BasicToolBarFactory::~BasicToolBarFactory() @@ -160,10 +158,10 @@ void BasicToolBarFactory::ThrowIfDisposed() const } } // end of namespace sd::framework extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL -com_sun_star_comp_Draw_framework_BasicToolBarFactory_get_implementation(css::uno::XComponentContext* context, +com_sun_star_comp_Draw_framework_BasicToolBarFactory_get_implementation(css::uno::XComponentContext*, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new sd::framework::BasicToolBarFactory(context)); + return cppu::acquire(new sd::framework::BasicToolBarFactory); } diff --git a/sd/source/ui/framework/factories/BasicToolBarFactory.hxx b/sd/source/ui/framework/factories/BasicToolBarFactory.hxx index bdfecae20875..6a188c7592eb 100644 --- a/sd/source/ui/framework/factories/BasicToolBarFactory.hxx +++ b/sd/source/ui/framework/factories/BasicToolBarFactory.hxx @@ -23,7 +23,6 @@ #include "MutexOwner.hxx" #include <com/sun/star/lang/XInitialization.hpp> -#include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/drawing/framework/XResourceFactory.hpp> #include <com/sun/star/drawing/framework/XConfigurationController.hpp> #include <com/sun/star/drawing/framework/XResourceId.hpp> @@ -51,8 +50,7 @@ class BasicToolBarFactory public BasicToolBarFactoryInterfaceBase { public: - explicit BasicToolBarFactory ( - const css::uno::Reference<css::uno::XComponentContext>& rxContext); + BasicToolBarFactory (); virtual ~BasicToolBarFactory() override; virtual void SAL_CALL disposing() override; diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx index 0eacf4f15a79..9eb50d7b5818 100644 --- a/sd/source/ui/framework/factories/BasicViewFactory.cxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx @@ -83,8 +83,7 @@ public: //===== ViewFactory =========================================================== -BasicViewFactory::BasicViewFactory ( - const Reference<XComponentContext>& rxContext) +BasicViewFactory::BasicViewFactory () : BasicViewFactoryInterfaceBase(MutexOwner::maMutex), mxConfigurationController(), mpViewShellContainer(new ViewShellContainer()), @@ -94,7 +93,6 @@ BasicViewFactory::BasicViewFactory ( mpViewCache(new ViewCache()), mxLocalPane(new Pane(Reference<XResourceId>(), mpWindow.get())) { - (void)rxContext; } BasicViewFactory::~BasicViewFactory() @@ -529,10 +527,10 @@ void BasicViewFactory::ActivateCenterView ( extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL -com_sun_star_comp_Draw_framework_BasicViewFactory_get_implementation(css::uno::XComponentContext* context, +com_sun_star_comp_Draw_framework_BasicViewFactory_get_implementation(css::uno::XComponentContext*, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new sd::framework::BasicViewFactory(context)); + return cppu::acquire(new sd::framework::BasicViewFactory); } diff --git a/sd/source/ui/framework/factories/BasicViewFactory.hxx b/sd/source/ui/framework/factories/BasicViewFactory.hxx index b822360c9307..ed0cd6f287c3 100644 --- a/sd/source/ui/framework/factories/BasicViewFactory.hxx +++ b/sd/source/ui/framework/factories/BasicViewFactory.hxx @@ -26,7 +26,6 @@ #include <com/sun/star/drawing/framework/XConfigurationController.hpp> #include <com/sun/star/drawing/framework/XPane.hpp> #include <com/sun/star/lang/XInitialization.hpp> -#include <com/sun/star/uno/XComponentContext.hpp> #include <cppuhelper/compbase.hxx> @@ -65,8 +64,7 @@ class BasicViewFactory public BasicViewFactoryInterfaceBase { public: - explicit BasicViewFactory ( - const css::uno::Reference<css::uno::XComponentContext>& rxContext); + BasicViewFactory (); virtual ~BasicViewFactory() override; virtual void SAL_CALL disposing() override; diff --git a/sd/source/ui/framework/factories/PresentationFactory.cxx b/sd/source/ui/framework/factories/PresentationFactory.cxx index 8bd2523c8f12..8a5dbf4e128c 100644 --- a/sd/source/ui/framework/factories/PresentationFactory.cxx +++ b/sd/source/ui/framework/factories/PresentationFactory.cxx @@ -45,7 +45,7 @@ class PresentationFactoryProvider public PresentationFactoryProviderInterfaceBase { public: - explicit PresentationFactoryProvider (const Reference<XComponentContext>& rxContext); + PresentationFactoryProvider (); virtual void SAL_CALL disposing() override; @@ -128,10 +128,9 @@ Reference<XResource> SAL_CALL PresentationFactory::createResource ( } void SAL_CALL PresentationFactory::releaseResource ( - const Reference<XResource>& rxView) + const Reference<XResource>&) { ThrowIfDisposed(); - (void)rxView; Reference<lang::XUnoTunnel> xTunnel (mxController, UNO_QUERY); if (xTunnel.is()) @@ -150,18 +149,14 @@ void SAL_CALL PresentationFactory::releaseResource ( //===== XConfigurationChangeListener ========================================== void SAL_CALL PresentationFactory::notifyConfigurationChange ( - const ConfigurationChangeEvent& rEvent) -{ - (void)rEvent; -} + const ConfigurationChangeEvent&) +{} //===== lang::XEventListener ================================================== void SAL_CALL PresentationFactory::disposing ( - const lang::EventObject& rEventObject) -{ - (void)rEventObject; -} + const lang::EventObject&) +{} void PresentationFactory::ThrowIfDisposed() const { @@ -176,11 +171,9 @@ namespace { //===== PresentationFactoryProvider =========================================== -PresentationFactoryProvider::PresentationFactoryProvider ( - const Reference<XComponentContext>& rxContext) +PresentationFactoryProvider::PresentationFactoryProvider () : PresentationFactoryProviderInterfaceBase(maMutex) { - (void)rxContext; } void PresentationFactoryProvider::disposing() @@ -218,10 +211,10 @@ void SAL_CALL PresentationFactoryProvider::initialize( extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL -com_sun_star_comp_Draw_framework_PresentationFactoryProvider_get_implementation(css::uno::XComponentContext* context, +com_sun_star_comp_Draw_framework_PresentationFactoryProvider_get_implementation(css::uno::XComponentContext*, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new sd::framework::PresentationFactoryProvider(context)); + return cppu::acquire(new sd::framework::PresentationFactoryProvider); } diff --git a/sd/source/ui/framework/factories/ViewShellWrapper.cxx b/sd/source/ui/framework/factories/ViewShellWrapper.cxx index 3d5f0bffc647..d37528807b37 100644 --- a/sd/source/ui/framework/factories/ViewShellWrapper.cxx +++ b/sd/source/ui/framework/factories/ViewShellWrapper.cxx @@ -244,31 +244,23 @@ sal_Int64 SAL_CALL ViewShellWrapper::getSomething (const Sequence<sal_Int8>& rId //===== awt::XWindowListener ================================================== -void SAL_CALL ViewShellWrapper::windowResized (const awt::WindowEvent& rEvent) +void SAL_CALL ViewShellWrapper::windowResized (const awt::WindowEvent&) { - (void)rEvent; ViewShell* pViewShell (mpViewShell.get()); if (pViewShell != nullptr) pViewShell->Resize(); } -void SAL_CALL ViewShellWrapper::windowMoved (const awt::WindowEvent& rEvent) -{ - (void)rEvent; -} +void SAL_CALL ViewShellWrapper::windowMoved (const awt::WindowEvent&) {} -void SAL_CALL ViewShellWrapper::windowShown (const lang::EventObject& rEvent) +void SAL_CALL ViewShellWrapper::windowShown (const lang::EventObject&) { - (void)rEvent; ViewShell* pViewShell (mpViewShell.get()); if (pViewShell != nullptr) pViewShell->Resize(); } -void SAL_CALL ViewShellWrapper::windowHidden (const lang::EventObject& rEvent) -{ - (void)rEvent; -} +void SAL_CALL ViewShellWrapper::windowHidden (const lang::EventObject&) {} //===== XEventListener ======================================================== diff --git a/sd/source/ui/framework/tools/FrameworkHelper.cxx b/sd/source/ui/framework/tools/FrameworkHelper.cxx index a469dce9ec7d..e6924862dc99 100644 --- a/sd/source/ui/framework/tools/FrameworkHelper.cxx +++ b/sd/source/ui/framework/tools/FrameworkHelper.cxx @@ -952,16 +952,14 @@ void LifetimeController::disposing() { } -void SAL_CALL LifetimeController::disposing (const lang::EventObject& rEvent) +void SAL_CALL LifetimeController::disposing (const lang::EventObject&) { - (void)rEvent; mbListeningToController = false; Update(); } -void LifetimeController::Notify (SfxBroadcaster& rBroadcaster, const SfxHint& rHint) +void LifetimeController::Notify (SfxBroadcaster&, const SfxHint& rHint) { - (void)rBroadcaster; if (rHint.GetId() == SfxHintId::Dying) { mbListeningToViewShellBase = false; diff --git a/sd/source/ui/presenter/PresenterCanvas.cxx b/sd/source/ui/presenter/PresenterCanvas.cxx index de271757144c..dc74ca43d4a4 100644 --- a/sd/source/ui/presenter/PresenterCanvas.cxx +++ b/sd/source/ui/presenter/PresenterCanvas.cxx @@ -433,30 +433,26 @@ void SAL_CALL PresenterCanvas::disposing (const css::lang::EventObject& rEvent) //----- XWindowListener ------------------------------------------------------- -void SAL_CALL PresenterCanvas::windowResized (const css::awt::WindowEvent& rEvent) +void SAL_CALL PresenterCanvas::windowResized (const css::awt::WindowEvent&) { - (void)rEvent; ThrowIfDisposed(); mbOffsetUpdatePending = true; } -void SAL_CALL PresenterCanvas::windowMoved (const css::awt::WindowEvent& rEvent) +void SAL_CALL PresenterCanvas::windowMoved (const css::awt::WindowEvent&) { - (void)rEvent; ThrowIfDisposed(); mbOffsetUpdatePending = true; } -void SAL_CALL PresenterCanvas::windowShown (const css::lang::EventObject& rEvent) +void SAL_CALL PresenterCanvas::windowShown (const css::lang::EventObject&) { - (void)rEvent; ThrowIfDisposed(); mbOffsetUpdatePending = true; } -void SAL_CALL PresenterCanvas::windowHidden (const css::lang::EventObject& rEvent) +void SAL_CALL PresenterCanvas::windowHidden (const css::lang::EventObject&) { - (void)rEvent; ThrowIfDisposed(); } @@ -485,12 +481,9 @@ sal_Bool SAL_CALL PresenterCanvas::hasAlpha() } Reference<rendering::XBitmap> SAL_CALL PresenterCanvas::getScaledBitmap( - const css::geometry::RealSize2D& rNewSize, - sal_Bool bFast) + const css::geometry::RealSize2D&, + sal_Bool) { - (void)rNewSize; - (void)bFast; - ThrowIfDisposed(); // Not implemented. diff --git a/sd/source/ui/presenter/PresenterHelper.cxx b/sd/source/ui/presenter/PresenterHelper.cxx index a909ea619a02..ce19b6a25825 100644 --- a/sd/source/ui/presenter/PresenterHelper.cxx +++ b/sd/source/ui/presenter/PresenterHelper.cxx @@ -58,10 +58,7 @@ PresenterHelper::~PresenterHelper() //----- XInitialize ----------------------------------------------------------- -void SAL_CALL PresenterHelper::initialize (const Sequence<Any>& rArguments) -{ - (void)rArguments; -} +void SAL_CALL PresenterHelper::initialize (const Sequence<Any>&) {} //----- XPaneHelper ---------------------------------------------------- @@ -139,11 +136,9 @@ Reference<rendering::XCanvas> SAL_CALL PresenterHelper::createSharedCanvas ( Reference<rendering::XCanvas> SAL_CALL PresenterHelper::createCanvas ( const Reference<awt::XWindow>& rxWindow, - sal_Int16 nRequestedCanvasFeatures, + sal_Int16, const OUString& rsOptionalCanvasServiceName) { - (void)nRequestedCanvasFeatures; - // No shared window is given or an explicit canvas service name is // specified. Create a new canvas. VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow(rxWindow); diff --git a/sd/source/ui/presenter/PresenterPreviewCache.cxx b/sd/source/ui/presenter/PresenterPreviewCache.cxx index a55330d3865b..4aac2c77f7fd 100644 --- a/sd/source/ui/presenter/PresenterPreviewCache.cxx +++ b/sd/source/ui/presenter/PresenterPreviewCache.cxx @@ -71,13 +71,12 @@ private: //===== PresenterPreviewCache ================================================= -PresenterPreviewCache::PresenterPreviewCache (const Reference<XComponentContext>& rxContext) +PresenterPreviewCache::PresenterPreviewCache () : PresenterPreviewCacheInterfaceBase(m_aMutex), maPreviewSize(Size(200,200)), mpCacheContext(new PresenterCacheContext()), mpCache(new PageCache(maPreviewSize, Bitmap::HasFastScale(), mpCacheContext)) { - (void)rxContext; } PresenterPreviewCache::~PresenterPreviewCache() @@ -247,10 +246,8 @@ void PresenterPreviewCache::PresenterCacheContext::RemovePreviewCreationNotifyLi void PresenterPreviewCache::PresenterCacheContext::NotifyPreviewCreation ( CacheKey aKey, - const Bitmap& rPreview) + const Bitmap&) { - (void)rPreview; - if ( ! mxSlides.is()) return; const sal_Int32 nCount(mxSlides->getCount()); @@ -362,10 +359,10 @@ void PresenterPreviewCache::PresenterCacheContext::CallListeners ( extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL -com_sun_star_comp_Draw_PresenterPreviewCache_get_implementation(css::uno::XComponentContext* context, +com_sun_star_comp_Draw_PresenterPreviewCache_get_implementation(css::uno::XComponentContext*, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new sd::presenter::PresenterPreviewCache(context)); + return cppu::acquire(new sd::presenter::PresenterPreviewCache); } diff --git a/sd/source/ui/presenter/PresenterPreviewCache.hxx b/sd/source/ui/presenter/PresenterPreviewCache.hxx index 9c611dc72744..a36581e22ff4 100644 --- a/sd/source/ui/presenter/PresenterPreviewCache.hxx +++ b/sd/source/ui/presenter/PresenterPreviewCache.hxx @@ -22,7 +22,6 @@ #include <com/sun/star/drawing/XSlidePreviewCache.hpp> #include <com/sun/star/lang/XInitialization.hpp> -#include <com/sun/star/uno/XComponentContext.hpp> #include "cache/SlsPageCache.hxx" #include <cppuhelper/compbase.hxx> #include <cppuhelper/basemutex.hxx> @@ -42,7 +41,7 @@ class PresenterPreviewCache public PresenterPreviewCacheInterfaceBase { public: - explicit PresenterPreviewCache (const css::uno::Reference<css::uno::XComponentContext>& rxContext); + PresenterPreviewCache (); virtual ~PresenterPreviewCache() override; PresenterPreviewCache(const PresenterPreviewCache&) = delete; PresenterPreviewCache& operator=(const PresenterPreviewCache&) = delete; diff --git a/sd/source/ui/presenter/PresenterTextView.cxx b/sd/source/ui/presenter/PresenterTextView.cxx index 6b6673b1c96a..275718e1edcd 100644 --- a/sd/source/ui/presenter/PresenterTextView.cxx +++ b/sd/source/ui/presenter/PresenterTextView.cxx @@ -97,11 +97,10 @@ private: }; // PresenterTextView -PresenterTextView::PresenterTextView (const Reference<XComponentContext>& rxContext) +PresenterTextView::PresenterTextView () : PresenterTextViewInterfaceBase(), mpImplementation(new Implementation()) { - (void)rxContext; } PresenterTextView::~PresenterTextView() @@ -509,10 +508,10 @@ void PresenterTextView::Implementation::CheckTop() extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL -com_sun_star_comp_Draw_PresenterTextView_get_implementation(css::uno::XComponentContext* context, +com_sun_star_comp_Draw_PresenterTextView_get_implementation(css::uno::XComponentContext*, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new sd::presenter::PresenterTextView(context)); + return cppu::acquire(new sd::presenter::PresenterTextView); } diff --git a/sd/source/ui/presenter/PresenterTextView.hxx b/sd/source/ui/presenter/PresenterTextView.hxx index 1024eccb5eb1..3335aea5f759 100644 --- a/sd/source/ui/presenter/PresenterTextView.hxx +++ b/sd/source/ui/presenter/PresenterTextView.hxx @@ -27,10 +27,6 @@ #include <cppuhelper/implbase.hxx> #include <memory> -namespace com { namespace sun { namespace star { namespace uno { - class XComponentContext; -} } } } - namespace sd { namespace presenter { typedef ::cppu::ImplInheritanceHelper < @@ -45,7 +41,7 @@ class PresenterTextView : public PresenterTextViewInterfaceBase { public: - explicit PresenterTextView (const css::uno::Reference<css::uno::XComponentContext>& rxContext); + PresenterTextView (); virtual ~PresenterTextView() override; PresenterTextView(const PresenterTextView&) = delete; PresenterTextView& operator=(const PresenterTextView&) = delete; diff --git a/sd/source/ui/presenter/SlideRenderer.cxx b/sd/source/ui/presenter/SlideRenderer.cxx index f174db6809a5..a686e6f40ef1 100644 --- a/sd/source/ui/presenter/SlideRenderer.cxx +++ b/sd/source/ui/presenter/SlideRenderer.cxx @@ -33,11 +33,10 @@ namespace sd { namespace presenter { //===== SlideRenderer ========================================================== -SlideRenderer::SlideRenderer (const Reference<XComponentContext>& rxContext) +SlideRenderer::SlideRenderer () : SlideRendererInterfaceBase(m_aMutex), maPreviewRenderer() { - (void)rxContext; } SlideRenderer::~SlideRenderer() @@ -200,10 +199,10 @@ void SlideRenderer::ThrowIfDisposed() extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* SAL_CALL -com_sun_star_comp_Draw_SlideRenderer_get_implementation(css::uno::XComponentContext* context, +com_sun_star_comp_Draw_SlideRenderer_get_implementation(css::uno::XComponentContext*, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new sd::presenter::SlideRenderer(context)); + return cppu::acquire(new sd::presenter::SlideRenderer); } diff --git a/sd/source/ui/presenter/SlideRenderer.hxx b/sd/source/ui/presenter/SlideRenderer.hxx index 5e0ad57d7dc2..e897cd4916ad 100644 --- a/sd/source/ui/presenter/SlideRenderer.hxx +++ b/sd/source/ui/presenter/SlideRenderer.hxx @@ -26,7 +26,6 @@ #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/rendering/XSpriteCanvas.hpp> -#include <com/sun/star/uno/XComponentContext.hpp> #include <cppuhelper/basemutex.hxx> #include <cppuhelper/compbase.hxx> @@ -46,7 +45,7 @@ class SlideRenderer public SlideRendererInterfaceBase { public: - explicit SlideRenderer (const css::uno::Reference<css::uno::XComponentContext>& rxContext); + SlideRenderer (); virtual ~SlideRenderer() override; SlideRenderer(const SlideRenderer&) = delete; SlideRenderer& operator=(const SlideRenderer&) = delete; diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx index 8f829934b216..148e4422fbed 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.cxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx @@ -877,11 +877,9 @@ registerWithDefaultAdapter( DBusConnection *pConnection ) } void ProfileUnregisterFunction -(DBusConnection *connection, void *user_data) +(DBusConnection *, void *) { // We specifically don't need to do anything here. - (void) connection; - (void) user_data; } DBusHandlerResult ProfileMessageFunction diff --git a/sd/source/ui/remotecontrol/Listener.cxx b/sd/source/ui/remotecontrol/Listener.cxx index 115df7eeafd8..b6fd1d921705 100644 --- a/sd/source/ui/remotecontrol/Listener.cxx +++ b/sd/source/ui/remotecontrol/Listener.cxx @@ -61,23 +61,16 @@ void Listener::init( const css::uno::Reference< css::presentation::XSlideShowCon //----- XAnimationListener ---------------------------------------------------- void SAL_CALL Listener::beginEvent(const css::uno::Reference< - css::animations::XAnimationNode >& rNode ) -{ - (void) rNode; -} + css::animations::XAnimationNode >& ) +{} void SAL_CALL Listener::endEvent( const css::uno::Reference< - css::animations::XAnimationNode >& rNode ) -{ - (void) rNode; -} + css::animations::XAnimationNode >& ) +{} void SAL_CALL Listener::repeat( const css::uno::Reference< - css::animations::XAnimationNode >& rNode, ::sal_Int32 aRepeat ) -{ - (void) rNode; - (void) aRepeat; -} + css::animations::XAnimationNode >&, ::sal_Int32 ) +{} //----- XSlideShowListener ---------------------------------------------------- @@ -89,9 +82,8 @@ void SAL_CALL Listener::resumed() { } -void SAL_CALL Listener::slideEnded (sal_Bool bReverse) +void SAL_CALL Listener::slideEnded (sal_Bool) { - (void) bReverse; } void SAL_CALL Listener::hyperLinkClicked (const OUString &) @@ -133,9 +125,8 @@ void SAL_CALL Listener::disposing() } void SAL_CALL Listener::disposing ( - const css::lang::EventObject& rEvent) + const css::lang::EventObject&) { - (void) rEvent; dispose(); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sd/source/ui/sidebar/MasterPageContainerProviders.cxx b/sd/source/ui/sidebar/MasterPageContainerProviders.cxx index 64c84c27f339..8e22702dea90 100644 --- a/sd/source/ui/sidebar/MasterPageContainerProviders.cxx +++ b/sd/source/ui/sidebar/MasterPageContainerProviders.cxx @@ -81,15 +81,10 @@ TemplatePreviewProvider::TemplatePreviewProvider (const OUString& rsURL) } Image TemplatePreviewProvider::operator() ( - int nWidth, - SdPage* pPage, - ::sd::PreviewRenderer& rRenderer) + int, + SdPage*, + ::sd::PreviewRenderer&) { - // Unused parameters. - (void)nWidth; - (void)pPage; - (void)rRenderer; - return Image(ThumbnailView::readThumbnail(msURL)); } @@ -111,11 +106,8 @@ TemplatePageObjectProvider::TemplatePageObjectProvider (const OUString& rsURL) { } -SdPage* TemplatePageObjectProvider::operator() (SdDrawDocument* pContainerDocument) +SdPage* TemplatePageObjectProvider::operator() (SdDrawDocument*) { - // Unused parameters. - (void)pContainerDocument; - SdPage* pPage = nullptr; mxDocumentShell = nullptr; @@ -202,10 +194,8 @@ ExistingPageProvider::ExistingPageProvider (SdPage* pPage) { } -SdPage* ExistingPageProvider::operator() (SdDrawDocument* pDocument) +SdPage* ExistingPageProvider::operator() (SdDrawDocument*) { - (void)pDocument; // Unused parameter. - return mpPage; } diff --git a/sd/source/ui/sidebar/NavigatorWrapper.cxx b/sd/source/ui/sidebar/NavigatorWrapper.cxx index 7ab817b751a9..5cdf7ce2bfcc 100644 --- a/sd/source/ui/sidebar/NavigatorWrapper.cxx +++ b/sd/source/ui/sidebar/NavigatorWrapper.cxx @@ -59,10 +59,8 @@ void NavigatorWrapper::Resize() maNavigator->SetSizePixel(GetSizePixel()); } -css::ui::LayoutSize NavigatorWrapper::GetHeightForWidth (const sal_Int32 nWidth) +css::ui::LayoutSize NavigatorWrapper::GetHeightForWidth (const sal_Int32) { - (void)nWidth; - return css::ui::LayoutSize(-1,-1,-1); } diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index 812b89144121..c86bb14562d3 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -595,10 +595,8 @@ void SlideBackground::NotifyItemUpdate( const sal_uInt16 nSID, const SfxItemState eState, const SfxPoolItem* pState, - const bool bIsEnabled) + const bool) { - (void)bIsEnabled; - switch(nSID) { diff --git a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx index 6ad5e4a45dd3..fb8ed0af7395 100644 --- a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx +++ b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx @@ -274,11 +274,9 @@ void PageCacheManager::ReleaseCache (const std::shared_ptr<Cache>& rpCache) std::shared_ptr<PageCacheManager::Cache> PageCacheManager::ChangeSize ( const std::shared_ptr<Cache>& rpCache, - const Size& rOldPreviewSize, + const Size&, const Size& rNewPreviewSize) { - (void)rOldPreviewSize; - std::shared_ptr<Cache> pResult; if (rpCache.get() != nullptr) diff --git a/sd/source/ui/slidesorter/model/SlsPageEnumerationProvider.cxx b/sd/source/ui/slidesorter/model/SlsPageEnumerationProvider.cxx index 28bfeae33151..50a27682c3ac 100644 --- a/sd/source/ui/slidesorter/model/SlsPageEnumerationProvider.cxx +++ b/sd/source/ui/slidesorter/model/SlsPageEnumerationProvider.cxx @@ -28,9 +28,8 @@ namespace { class AllPagesPredicate { public: - bool operator() (const SharedPageDescriptor& rpDescriptor) const + bool operator() (const SharedPageDescriptor&) const { - (void)rpDescriptor; return true; } }; diff --git a/sd/source/ui/slidesorter/shell/SlideSorterService.cxx b/sd/source/ui/slidesorter/shell/SlideSorterService.cxx index 3c9f80deb2e3..78517c6086f0 100644 --- a/sd/source/ui/slidesorter/shell/SlideSorterService.cxx +++ b/sd/source/ui/slidesorter/shell/SlideSorterService.cxx @@ -125,29 +125,23 @@ sal_Bool SAL_CALL SlideSorterService::isAnchorOnly() //----- XWindowListener ------------------------------------------------------- -void SAL_CALL SlideSorterService::windowResized (const awt::WindowEvent& rEvent) +void SAL_CALL SlideSorterService::windowResized (const awt::WindowEvent&) { - (void)rEvent; ThrowIfDisposed(); Resize(); } -void SAL_CALL SlideSorterService::windowMoved (const awt::WindowEvent& rEvent) -{ - (void)rEvent; -} +void SAL_CALL SlideSorterService::windowMoved (const awt::WindowEvent&) {} -void SAL_CALL SlideSorterService::windowShown (const lang::EventObject& rEvent) +void SAL_CALL SlideSorterService::windowShown (const lang::EventObject&) { - (void)rEvent; ThrowIfDisposed(); Resize(); } -void SAL_CALL SlideSorterService::windowHidden (const lang::EventObject& rEvent) +void SAL_CALL SlideSorterService::windowHidden (const lang::EventObject&) { - (void)rEvent; ThrowIfDisposed(); } diff --git a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx index 32dbf8920819..2da220ed845d 100644 --- a/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx +++ b/sd/source/ui/slidesorter/view/SlsInsertionIndicatorOverlay.cxx @@ -298,10 +298,8 @@ void InsertionIndicatorOverlay::SetLocation (const Point& rLocation) void InsertionIndicatorOverlay::Paint ( OutputDevice& rDevice, - const ::tools::Rectangle& rRepaintArea) + const ::tools::Rectangle&) { - (void)rRepaintArea; - if ( ! IsVisible()) return; diff --git a/sd/source/ui/slidesorter/view/SlsLayouter.cxx b/sd/source/ui/slidesorter/view/SlsLayouter.cxx index bb67972edf7b..dbe5f4053b53 100644 --- a/sd/source/ui/slidesorter/view/SlsLayouter.cxx +++ b/sd/source/ui/slidesorter/view/SlsLayouter.cxx @@ -1000,10 +1000,8 @@ Layouter::Orientation HorizontalImplementation::GetOrientation() const return Layouter::HORIZONTAL; } -void HorizontalImplementation::CalculateRowAndColumnCount (const Size& rWindowSize) +void HorizontalImplementation::CalculateRowAndColumnCount (const Size&) { - (void)rWindowSize; - // Row and column count are fixed (for a given page count.) mnColumnCount = mnPageCount; mnRowCount = 1; @@ -1050,10 +1048,8 @@ Layouter::Orientation VerticalImplementation::GetOrientation() const return Layouter::VERTICAL; } -void VerticalImplementation::CalculateRowAndColumnCount (const Size& rWindowSize) +void VerticalImplementation::CalculateRowAndColumnCount (const Size&) { - (void)rWindowSize; - // Row and column count are fixed (for a given page count.) mnRowCount = mnPageCount; mnColumnCount = 1; diff --git a/sd/source/ui/tools/PropertySet.cxx b/sd/source/ui/tools/PropertySet.cxx index 934636a2153d..33b2d7485804 100644 --- a/sd/source/ui/tools/PropertySet.cxx +++ b/sd/source/ui/tools/PropertySet.cxx @@ -118,23 +118,19 @@ void SAL_CALL PropertySet::removePropertyChangeListener ( } void SAL_CALL PropertySet::addVetoableChangeListener ( - const OUString& rsPropertyName, - const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener) + const OUString&, + const css::uno::Reference<css::beans::XVetoableChangeListener>&) { // Constraint properties are not supported and thus no vetoable // listeners. - (void)rsPropertyName; - (void)rxListener; } void SAL_CALL PropertySet::removeVetoableChangeListener ( - const OUString& rsPropertyName, - const css::uno::Reference<css::beans::XVetoableChangeListener>& rxListener) + const OUString&, + const css::uno::Reference<css::beans::XVetoableChangeListener>&) { // Constraint properties are not supported and thus no vetoable // listeners. - (void)rsPropertyName; - (void)rxListener; } void PropertySet::CallListeners ( diff --git a/sd/source/ui/unoidl/SdUnoDrawView.cxx b/sd/source/ui/unoidl/SdUnoDrawView.cxx index f78122dca27d..fe3df00c97f5 100644 --- a/sd/source/ui/unoidl/SdUnoDrawView.cxx +++ b/sd/source/ui/unoidl/SdUnoDrawView.cxx @@ -289,16 +289,12 @@ Any SAL_CALL SdUnoDrawView::getSelection() } void SAL_CALL SdUnoDrawView::addSelectionChangeListener ( - const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) -{ - (void)rxListener; -} + const css::uno::Reference<css::view::XSelectionChangeListener>&) +{} void SAL_CALL SdUnoDrawView::removeSelectionChangeListener ( - const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) -{ - (void)rxListener; -} + const css::uno::Reference<css::view::XSelectionChangeListener>&) +{} void SdUnoDrawView::setFastPropertyValue ( sal_Int32 nHandle, diff --git a/sd/source/ui/unoidl/SdUnoOutlineView.cxx b/sd/source/ui/unoidl/SdUnoOutlineView.cxx index be14a720ffa1..c93c4588727b 100644 --- a/sd/source/ui/unoidl/SdUnoOutlineView.cxx +++ b/sd/source/ui/unoidl/SdUnoOutlineView.cxx @@ -64,16 +64,12 @@ Any SAL_CALL SdUnoOutlineView::getSelection() } void SAL_CALL SdUnoOutlineView::addSelectionChangeListener ( - const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) -{ - (void)rxListener; -} + const css::uno::Reference<css::view::XSelectionChangeListener>&) +{} void SAL_CALL SdUnoOutlineView::removeSelectionChangeListener ( - const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) -{ - (void)rxListener; -} + const css::uno::Reference<css::view::XSelectionChangeListener>&) +{} //----- XDrawView ------------------------------------------------------------- void SAL_CALL SdUnoOutlineView::setCurrentPage ( diff --git a/sd/source/ui/unoidl/SdUnoSlideView.cxx b/sd/source/ui/unoidl/SdUnoSlideView.cxx index c1f1f4bb0638..15c9371783f1 100644 --- a/sd/source/ui/unoidl/SdUnoSlideView.cxx +++ b/sd/source/ui/unoidl/SdUnoSlideView.cxx @@ -104,16 +104,12 @@ Any SAL_CALL SdUnoSlideView::getSelection() } void SAL_CALL SdUnoSlideView::addSelectionChangeListener ( - const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) -{ - (void)rxListener; -} + const css::uno::Reference<css::view::XSelectionChangeListener>&) +{} void SAL_CALL SdUnoSlideView::removeSelectionChangeListener ( - const css::uno::Reference<css::view::XSelectionChangeListener>& rxListener) -{ - (void)rxListener; -} + const css::uno::Reference<css::view::XSelectionChangeListener>&) +{} //----- XDrawView ------------------------------------------------------------- @@ -142,10 +138,8 @@ css::uno::Reference<css::drawing::XDrawPage > SAL_CALL void SdUnoSlideView::setFastPropertyValue ( sal_Int32 nHandle, - const Any& rValue) + const Any&) { - (void)rValue; - throw beans::UnknownPropertyException( OUString::number(nHandle), static_cast<cppu::OWeakObject*>(this)); } diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index 4016191e8b3f..cbe2aa9ddb1b 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -377,8 +377,7 @@ uno::Sequence<beans::PropertyValue> uno::Reference< lang::XComponent > xComp( xSubStorage, UNO_QUERY ); if( xComp.is() ) xSubStorage->dispose(); - } catch (const uno::Exception &e) { - (void)e; + } catch (const uno::Exception &) { // fprintf (stderr, "saving etc. exception '%s'\n", // OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr()); } diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 57f8ed7ac3d0..a6966be40195 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -741,13 +741,12 @@ namespace { virtual void Print ( Printer& rPrinter, SdDrawDocument& rDocument, - ViewShell& rViewShell, + ViewShell&, View* pView, DrawView& rPrintView, const SdrLayerIDSet& rVisibleLayers, const SdrLayerIDSet& rPrintableLayers) const override { - (void)rViewShell; SdPage* pPageToPrint = rDocument.GetSdPage(mnPageIndex, mePageKind); rPrinter.SetMapMode(maMap); PrintPage( @@ -792,13 +791,12 @@ namespace { virtual void Print ( Printer& rPrinter, SdDrawDocument& rDocument, - ViewShell& rViewShell, + ViewShell&, View* pView, DrawView& rPrintView, const SdrLayerIDSet& rVisibleLayers, const SdrLayerIDSet& rPrintableLayers) const override { - (void)rViewShell; SdPage* pPageToPrint = rDocument.GetSdPage(mnPageIndex, mePageKind); if (pPageToPrint==nullptr) return; @@ -875,13 +873,12 @@ namespace { virtual void Print ( Printer& rPrinter, SdDrawDocument& rDocument, - ViewShell& rViewShell, + ViewShell&, View* pView, DrawView& rPrintView, const SdrLayerIDSet& rVisibleLayers, const SdrLayerIDSet& rPrintableLayers) const override { - (void)rViewShell; MapMode aMap (maMap); SdPage* pPageToPrint = rDocument.GetSdPage(mnFirstPageIndex, mePageKind); if (pPageToPrint) @@ -1091,18 +1088,12 @@ namespace { virtual void Print ( Printer& rPrinter, SdDrawDocument& rDocument, - ViewShell& rViewShell, - View* pView, - DrawView& rPrintView, - const SdrLayerIDSet& rVisibleLayers, - const SdrLayerIDSet& rPrintableLayers) const override + ViewShell&, + View*, + DrawView&, + const SdrLayerIDSet&, + const SdrLayerIDSet&) const override { - (void)rViewShell; - (void)pView; - (void)rPrintView; - (void)rVisibleLayers; - (void)rPrintableLayers; - // Set up the printer. rPrinter.SetMapMode(maMap); @@ -2226,31 +2217,27 @@ DocumentRenderer::~DocumentRenderer() //----- XRenderable ----------------------------------------------------------- sal_Int32 SAL_CALL DocumentRenderer::getRendererCount ( - const css::uno::Any& aSelection, + const css::uno::Any&, const css::uno::Sequence<css::beans::PropertyValue >& rOptions) { - (void)aSelection; mpImpl->ProcessProperties(rOptions); return mpImpl->GetPrintPageCount(); } Sequence<beans::PropertyValue> SAL_CALL DocumentRenderer::getRenderer ( - sal_Int32 nRenderer, - const css::uno::Any& rSelection, + sal_Int32, + const css::uno::Any&, const css::uno::Sequence<css::beans::PropertyValue>& rOptions) { - (void)nRenderer; - (void)rSelection; mpImpl->ProcessProperties(rOptions); return mpImpl->GetProperties(); } void SAL_CALL DocumentRenderer::render ( sal_Int32 nRenderer, - const css::uno::Any& rSelection, + const css::uno::Any&, const css::uno::Sequence<css::beans::PropertyValue>& rOptions) { - (void)rSelection; mpImpl->ProcessProperties(rOptions); mpImpl->PrintPage(nRenderer); } diff --git a/sd/source/ui/view/drviewsa.cxx b/sd/source/ui/view/drviewsa.cxx index 2a28a1ffb2db..73dd7228ab6e 100644 --- a/sd/source/ui/view/drviewsa.cxx +++ b/sd/source/ui/view/drviewsa.cxx @@ -394,7 +394,6 @@ bool DrawViewShell::RelocateToParentWindow (vcl::Window* pParentWindow) void DrawViewShell::CheckLineTo(SfxRequest& rReq) { - (void)rReq; #ifdef DBG_UTIL if(rReq.IsAPI()) { |