diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-05 11:59:19 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-05 11:50:45 +0000 |
commit | f12476f0f61824f6bf5120d3176731b17a43b817 (patch) | |
tree | d94238485804d4937f1aaf9e68beebd52cb490e4 /sd | |
parent | 99cb0d3e68921c52311b4dce032d8d2bf39a969f (diff) |
loplugin:countusersofdefaultparams in oox..sd
Change-Id: I4504939a3957606979c6ac36af6611e1fe072d01
Reviewed-on: https://gerrit.libreoffice.org/27902
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/inc/OutlinerIterator.hxx | 4 | ||||
-rw-r--r-- | sd/qa/unit/sdmodeltestbase.hxx | 2 | ||||
-rw-r--r-- | sd/source/filter/eppt/eppt.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/inc/OutlineView.hxx | 4 | ||||
-rw-r--r-- | sd/source/ui/inc/View.hxx | 4 | ||||
-rw-r--r-- | sd/source/ui/inc/optsitem.hxx | 18 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx | 4 |
7 files changed, 19 insertions, 19 deletions
diff --git a/sd/inc/OutlinerIterator.hxx b/sd/inc/OutlinerIterator.hxx index 4cfc111213a3..d5a4392dbcea 100644 --- a/sd/inc/OutlinerIterator.hxx +++ b/sd/inc/OutlinerIterator.hxx @@ -235,7 +235,7 @@ private: SdDrawDocument* pDocument, const std::shared_ptr<ViewShell>& rpViewShell, bool bDirectionIsForward, - IteratorLocation aLocation=BEGIN); + IteratorLocation aLocation); /** Create an iterator that iterates over all <type>SdrObjects</type> objects of the <member>mpOutliner</member> outliner. @@ -252,7 +252,7 @@ private: SdDrawDocument* pDocument, const std::shared_ptr<ViewShell>& rpViewShell, bool bDirectionIsForward, - IteratorLocation aLocation=BEGIN); + IteratorLocation aLocation); /** Return the index of a page that contains an object that a new iterator shall point to. This page index depends primarily on the diff --git a/sd/qa/unit/sdmodeltestbase.hxx b/sd/qa/unit/sdmodeltestbase.hxx index 33b63ebf5557..cf7337f38e11 100644 --- a/sd/qa/unit/sdmodeltestbase.hxx +++ b/sd/qa/unit/sdmodeltestbase.hxx @@ -224,7 +224,7 @@ protected: @param bCreate Instead of comparing to the reference file(s), create it/them. */ - void compareWithShapesDump( ::sd::DrawDocShellRef xDocShRef, const OUString &rShapesDumpFileNameBase, bool bCreate = false ) + void compareWithShapesDump( ::sd::DrawDocShellRef xDocShRef, const OUString &rShapesDumpFileNameBase, bool bCreate ) { CPPUNIT_ASSERT_MESSAGE( "failed to load", xDocShRef.Is() ); CPPUNIT_ASSERT_MESSAGE( "not in destruction", !xDocShRef->IsInDestruction() ); diff --git a/sd/source/filter/eppt/eppt.hxx b/sd/source/filter/eppt/eppt.hxx index 38e26109c0f8..2162ccb60bc4 100644 --- a/sd/source/filter/eppt/eppt.hxx +++ b/sd/source/filter/eppt/eppt.hxx @@ -198,7 +198,7 @@ class PPTWriter : public PPTWriterBase, public PPTExBulletProvider void ImplWriteExtParaHeader( SvMemoryStream& rSt, sal_uInt32 nRef, sal_uInt32 nInstance, sal_uInt32 nSlideId ); sal_uInt32 ImplProgBinaryTag( SvStream* pOutStrm ); - sal_uInt32 ImplProgBinaryTagContainer( SvStream* pOutStrm, SvMemoryStream* pBinTag = nullptr ); + sal_uInt32 ImplProgBinaryTagContainer( SvStream* pOutStrm, SvMemoryStream* pBinTag ); sal_uInt32 ImplProgTagContainer( SvStream* pOutStrm, SvMemoryStream* pBinTag = nullptr ); static sal_uInt32 ImplOutlineViewInfoContainer( SvStream* pOutStrm ); static sal_uInt32 ImplSlideViewInfoContainer( sal_uInt32 nInstance, SvStream* pOutStrm ); diff --git a/sd/source/ui/inc/OutlineView.hxx b/sd/source/ui/inc/OutlineView.hxx index 67a6bb57ea06..b232cbf580b8 100644 --- a/sd/source/ui/inc/OutlineView.hxx +++ b/sd/source/ui/inc/OutlineView.hxx @@ -126,12 +126,12 @@ public: const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper, ::sd::Window* pTargetWindow, - sal_uInt16 nPage = SDRPAGE_NOTFOUND, + sal_uInt16 nPage, sal_uInt16 nLayer = SDRPAGE_NOTFOUND) override; virtual sal_Int8 ExecuteDrop ( const ExecuteDropEvent& rEvt, ::sd::Window* pTargetWindow, - sal_uInt16 nPage = SDRPAGE_NOTFOUND, + sal_uInt16 nPage, sal_uInt16 nLayer = SDRPAGE_NOTFOUND) override; // Re-implement GetScriptType for this view to get correct results diff --git a/sd/source/ui/inc/View.hxx b/sd/source/ui/inc/View.hxx index 844fae7c00a3..8e47f46d4e3f 100644 --- a/sd/source/ui/inc/View.hxx +++ b/sd/source/ui/inc/View.hxx @@ -101,12 +101,12 @@ public: const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper, ::sd::Window* pTargetWindow, - sal_uInt16 nPage = SDRPAGE_NOTFOUND, + sal_uInt16 nPage, sal_uInt16 nLayer = SDRPAGE_NOTFOUND); virtual sal_Int8 ExecuteDrop ( const ExecuteDropEvent& rEvt, ::sd::Window* pTargetWindow, - sal_uInt16 nPage = SDRPAGE_NOTFOUND, + sal_uInt16 nPage, sal_uInt16 nLayer = SDRPAGE_NOTFOUND); css::uno::Reference<css::datatransfer::XTransferable> diff --git a/sd/source/ui/inc/optsitem.hxx b/sd/source/ui/inc/optsitem.hxx index 818ef212c8d9..211f395a33bb 100644 --- a/sd/source/ui/inc/optsitem.hxx +++ b/sd/source/ui/inc/optsitem.hxx @@ -276,7 +276,7 @@ public: bool IsPreviewTransitions() const { Init(); return bPreviewTransitions; } sal_Int32 GetDisplay() const; - void SetDisplay( sal_Int32 nDisplay = 0 ); + void SetDisplay( sal_Int32 nDisplay ); sal_Int32 GetPresentationPenColor() const { Init(); return mnPenColor; } void SetPresentationPenColor( sal_Int32 nPenColor ) { if( mnPenColor != nPenColor ) { OptionsChanged(); mnPenColor = nPenColor; } } @@ -304,7 +304,7 @@ public: hence the parameters name. Use 0 for turning it off. Other values are reserved for future use. */ - void SetPrinterIndependentLayout (sal_uInt16 nOn = 1 ){ if ( nOn != mnPrinterIndependentLayout ) { OptionsChanged(); mnPrinterIndependentLayout = nOn; } } + void SetPrinterIndependentLayout (sal_uInt16 nOn ){ if ( nOn != mnPrinterIndependentLayout ) { OptionsChanged(); mnPrinterIndependentLayout = nOn; } } void SetSolidDragging( bool bOn ) { if( bSolidDragging != bOn ) { OptionsChanged(); bSolidDragging = bOn; } } void SetShowUndoDeleteWarning( bool bOn ) { if( bShowUndoDeleteWarning != bOn ) { OptionsChanged(); bShowUndoDeleteWarning = bOn; } } void SetSlideshowRespectZOrder( bool bOn ) { if( bSlideshowRespectZOrder != bOn ) { OptionsChanged(); bSlideshowRespectZOrder = bOn; } } @@ -376,13 +376,13 @@ public: sal_Int16 GetAngle() const { Init(); return nAngle; } sal_Int16 GetEliminatePolyPointLimitAngle() const { Init(); return nBezAngle; } - void SetSnapHelplines( bool bOn = true ) { if( bSnapHelplines != bOn ) { OptionsChanged(); bSnapHelplines = bOn; } } - void SetSnapBorder( bool bOn = true ) { if( bSnapBorder != bOn ) { OptionsChanged(); bSnapBorder = bOn; } } - void SetSnapFrame( bool bOn = true ) { if( bSnapFrame != bOn ) { OptionsChanged(); bSnapFrame = bOn; } } - void SetSnapPoints( bool bOn = true ) { if( bSnapPoints != bOn ) { OptionsChanged(); bSnapPoints = bOn; } } - void SetOrtho( bool bOn = true ) { if( bOrtho != bOn ) { OptionsChanged(); bOrtho = bOn; } } - void SetBigOrtho( bool bOn = true ) { if( bBigOrtho != bOn ) { OptionsChanged(); bBigOrtho = bOn; } } - void SetRotate( bool bOn = true ) { if( bRotate != bOn ) { OptionsChanged(); bRotate = bOn; } } + void SetSnapHelplines( bool bOn ) { if( bSnapHelplines != bOn ) { OptionsChanged(); bSnapHelplines = bOn; } } + void SetSnapBorder( bool bOn ) { if( bSnapBorder != bOn ) { OptionsChanged(); bSnapBorder = bOn; } } + void SetSnapFrame( bool bOn ) { if( bSnapFrame != bOn ) { OptionsChanged(); bSnapFrame = bOn; } } + void SetSnapPoints( bool bOn ) { if( bSnapPoints != bOn ) { OptionsChanged(); bSnapPoints = bOn; } } + void SetOrtho( bool bOn ) { if( bOrtho != bOn ) { OptionsChanged(); bOrtho = bOn; } } + void SetBigOrtho( bool bOn ) { if( bBigOrtho != bOn ) { OptionsChanged(); bBigOrtho = bOn; } } + void SetRotate( bool bOn ) { if( bRotate != bOn ) { OptionsChanged(); bRotate = bOn; } } void SetSnapArea( sal_Int16 nIn ) { if( nSnapArea != nIn ) { OptionsChanged(); nSnapArea = nIn; } } void SetAngle( sal_Int16 nIn ) { if( nAngle != nIn ) { OptionsChanged(); nAngle = nIn; } } void SetEliminatePolyPointLimitAngle( sal_Int16 nIn ) { if( nBezAngle != nIn ) { OptionsChanged(); nBezAngle = nIn; } } diff --git a/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx b/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx index 689ff3ec55b2..c180d2c3ded5 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlsClipboard.hxx @@ -90,14 +90,14 @@ public: const AcceptDropEvent& rEvt, DropTargetHelper& rTargetHelper, ::sd::Window* pTargetWindow, - sal_uInt16 nPage = SDRPAGE_NOTFOUND, + sal_uInt16 nPage, sal_uInt16 nLayer = SDRPAGE_NOTFOUND ); sal_Int8 ExecuteDrop ( const ExecuteDropEvent& rEvt, DropTargetHelper& rTargetHelper, ::sd::Window* pTargetWindow, - sal_uInt16 nPage = SDRPAGE_NOTFOUND, + sal_uInt16 nPage, sal_uInt16 nLayer = SDRPAGE_NOTFOUND); void Abort(); |