From e65506968f98340522df9af1a2bfa7ab736bdc45 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Mar 2016 15:13:33 +0200 Subject: loplugin:unuseddefaultparam in sd Change-Id: Ic1bb6903a7e4d4aae44b0a2a21a46590d5b4027f --- sd/inc/CustomAnimationEffect.hxx | 2 +- sd/source/core/CustomAnimationEffect.cxx | 4 +- sd/source/filter/html/htmlex.cxx | 8 +--- sd/source/filter/html/htmlex.hxx | 2 +- sd/source/ui/animations/CategoryListBox.cxx | 4 +- sd/source/ui/animations/CategoryListBox.hxx | 2 +- sd/source/ui/animations/CustomAnimationList.cxx | 6 +-- sd/source/ui/animations/CustomAnimationList.hxx | 2 +- sd/source/ui/animations/STLPropertySet.cxx | 2 +- sd/source/ui/animations/STLPropertySet.hxx | 2 +- sd/source/ui/annotations/annotationwindow.cxx | 5 +-- sd/source/ui/annotations/annotationwindow.hxx | 2 +- sd/source/ui/inc/TemplateScanner.hxx | 4 +- sd/source/ui/inc/WindowUpdater.hxx | 6 +-- sd/source/ui/inc/slideshow.hxx | 3 +- sd/source/ui/inc/tools/AsynchronousCall.hxx | 10 ++--- sd/source/ui/inc/unomodel.hxx | 2 +- sd/source/ui/sidebar/MasterPageContainer.cxx | 44 +++++----------------- sd/source/ui/sidebar/RecentlyUsedMasterPages.cxx | 6 +-- sd/source/ui/sidebar/RecentlyUsedMasterPages.hxx | 9 +---- sd/source/ui/slideshow/slideshow.cxx | 5 +-- sd/source/ui/slidesorter/cache/SlsPageCache.cxx | 4 +- .../ui/slidesorter/controller/SlsAnimator.cxx | 3 +- .../ui/slidesorter/controller/SlsClipboard.cxx | 10 ++--- .../ui/slidesorter/controller/SlsPageSelector.cxx | 6 +-- .../slidesorter/controller/SlsSelectionManager.cxx | 5 +-- .../ui/slidesorter/inc/cache/SlsPageCache.hxx | 6 +-- .../ui/slidesorter/inc/controller/SlsAnimator.hxx | 2 +- .../ui/slidesorter/inc/controller/SlsClipboard.hxx | 4 +- .../slidesorter/inc/controller/SlsPageSelector.hxx | 9 ++--- .../inc/controller/SlsSelectionManager.hxx | 2 +- .../ui/slidesorter/view/SlsInsertAnimator.cxx | 10 ++--- sd/source/ui/tools/AsynchronousCall.cxx | 6 +-- sd/source/ui/unoidl/unolayer.cxx | 5 +-- sd/source/ui/unoidl/unolayer.hxx | 2 +- sd/source/ui/unoidl/unomodel.cxx | 4 +- sd/source/ui/view/WindowUpdater.cxx | 5 +-- 37 files changed, 71 insertions(+), 142 deletions(-) diff --git a/sd/inc/CustomAnimationEffect.hxx b/sd/inc/CustomAnimationEffect.hxx index f6dbd1815821..a8dcbe5c1a42 100644 --- a/sd/inc/CustomAnimationEffect.hxx +++ b/sd/inc/CustomAnimationEffect.hxx @@ -151,7 +151,7 @@ public: SAL_DLLPRIVATE void setAudio( const css::uno::Reference< css::animations::XAudio >& xAudio ); SAL_DLLPRIVATE bool getStopAudio() const; void setStopAudio(); - void createAudio( const css::uno::Any& rSource, double fVolume = 1.0 ); + void createAudio( const css::uno::Any& rSource ); SAL_DLLPRIVATE void removeAudio(); SAL_DLLPRIVATE const css::uno::Reference< css::animations::XAudio >& getAudio() const { return mxAudio; } diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx index a3efd9fb8dd7..674f3117bd94 100644 --- a/sd/source/core/CustomAnimationEffect.cxx +++ b/sd/source/core/CustomAnimationEffect.cxx @@ -1477,7 +1477,7 @@ bool CustomAnimationEffect::setTransformationProperty( sal_Int32 nTransformType, return bChanged; } -void CustomAnimationEffect::createAudio( const css::uno::Any& rSource, double fVolume /* = 1.0 */ ) +void CustomAnimationEffect::createAudio( const css::uno::Any& rSource ) { DBG_ASSERT( !mxAudio.is(), "sd::CustomAnimationEffect::createAudio(), node already has an audio!" ); @@ -1486,7 +1486,7 @@ void CustomAnimationEffect::createAudio( const css::uno::Any& rSource, double fV Reference< XComponentContext > xContext( ::comphelper::getProcessComponentContext() ); Reference< XAudio > xAudio( Audio::create( xContext ) ); xAudio->setSource( rSource ); - xAudio->setVolume( fVolume ); + xAudio->setVolume( 1.0 ); setAudio( xAudio ); } catch( Exception& ) diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index 9bbe92cc5071..06b2375ba827 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -2729,8 +2729,7 @@ OUString HtmlExport::CreateLink( const OUString& aLink, // creates a image tag OUString HtmlExport::CreateImage( const OUString& aImage, const OUString& aAltText, - sal_Int16 nWidth, - sal_Int16 nHeight ) + sal_Int16 nWidth ) { OUStringBuffer aStr( "