diff options
author | Noel Grandin <noel@peralex.com> | 2016-06-01 12:54:31 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-03 09:08:42 +0000 |
commit | f3c1d240bd4f32d014db00a9864c56f77b7cb127 (patch) | |
tree | ff952e1002ed98d1a0d537193f7bd15aac64b1c9 /include | |
parent | 643b70006fd5f6762561696421808f20d4e1e86f (diff) |
loplugin:constantparams
Change-Id: Ib162ba9297b9d900ea42c7e5216e152d3e58a361
Reviewed-on: https://gerrit.libreoffice.org/25769
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/basegfx/curve/b2dcubicbezier.hxx | 2 | ||||
-rw-r--r-- | include/basic/sbx.hxx | 2 | ||||
-rw-r--r-- | include/drawinglayer/primitive2d/animatedprimitive2d.hxx | 6 | ||||
-rw-r--r-- | include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx | 3 | ||||
-rw-r--r-- | include/filter/msfilter/escherex.hxx | 20 | ||||
-rw-r--r-- | include/filter/msfilter/mstoolbar.hxx | 2 | ||||
-rw-r--r-- | include/filter/msfilter/svdfppt.hxx | 7 |
7 files changed, 16 insertions, 26 deletions
diff --git a/include/basegfx/curve/b2dcubicbezier.hxx b/include/basegfx/curve/b2dcubicbezier.hxx index 423e138f4c35..f97ac2991306 100644 --- a/include/basegfx/curve/b2dcubicbezier.hxx +++ b/include/basegfx/curve/b2dcubicbezier.hxx @@ -116,7 +116,7 @@ namespace basegfx and the end point #i37443# allow the criteria to get unsharp in recursions */ - void adaptiveSubdivideByAngle(B2DPolygon& rTarget, double fAngleBound, bool bAllowUnsharpen) const; + void adaptiveSubdivideByAngle(B2DPolygon& rTarget, double fAngleBound) const; /** #i37443# adaptive subdivide by nCount subdivisions no start point is added, but all necessary created edges diff --git a/include/basic/sbx.hxx b/include/basic/sbx.hxx index 96dc1ac35fd3..91351ac77321 100644 --- a/include/basic/sbx.hxx +++ b/include/basic/sbx.hxx @@ -246,7 +246,7 @@ protected: virtual void CollRemove( SbxArray* pPar ) override; public: SBX_DECL_PERSIST_NODATA(SBXCR_SBX,SBXID_FIXCOLLECTION,1); - SbxStdCollection( const OUString& rClassname, const OUString& rElemClass, bool=true ); + SbxStdCollection( const OUString& rClassname, const OUString& rElemClass ); SbxStdCollection( const SbxStdCollection& ); SbxStdCollection& operator=( const SbxStdCollection& ); virtual void Insert( SbxVariable* ) override; diff --git a/include/drawinglayer/primitive2d/animatedprimitive2d.hxx b/include/drawinglayer/primitive2d/animatedprimitive2d.hxx index 7050cbbd33e7..381cfd9d583c 100644 --- a/include/drawinglayer/primitive2d/animatedprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/animatedprimitive2d.hxx @@ -114,8 +114,7 @@ namespace drawinglayer /// constructor AnimatedBlinkPrimitive2D( const animation::AnimationEntry& rAnimationEntry, - const Primitive2DContainer& rChildren, - bool bIsTextAnimation); + const Primitive2DContainer& rChildren); /// create local decomposition virtual Primitive2DContainer get2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const override; @@ -150,8 +149,7 @@ namespace drawinglayer AnimatedInterpolatePrimitive2D( const std::vector< basegfx::B2DHomMatrix >& rmMatrixStack, const animation::AnimationEntry& rAnimationEntry, - const Primitive2DContainer& rChildren, - bool bIsTextAnimation); + const Primitive2DContainer& rChildren); /// create local decomposition virtual Primitive2DContainer get2DDecomposition(const geometry::ViewInformation2D& rViewInformation) const override; diff --git a/include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx b/include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx index f8d888a94fcb..43c092d30980 100644 --- a/include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/pagepreviewprimitive2d.hxx @@ -73,8 +73,7 @@ namespace drawinglayer const basegfx::B2DHomMatrix& rTransform, double fContentWidth, double fContentHeight, - const Primitive2DContainer& rPageContent, - bool bKeepAspectRatio); + const Primitive2DContainer& rPageContent); /// data read access const css::uno::Reference< css::drawing::XDrawPage >& getXDrawPage() const { return mxDrawPage; } diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx index ab4cedf4c607..aa4cd5497a2c 100644 --- a/include/filter/msfilter/escherex.hxx +++ b/include/filter/msfilter/escherex.hxx @@ -993,15 +993,13 @@ public: class InteractionInfo { - bool mbHasInteraction; std::unique_ptr<SvMemoryStream> mpHyperlinkRecord; public: - InteractionInfo( SvMemoryStream* pStream, bool bInteraction ) : mbHasInteraction( bInteraction ) + InteractionInfo( SvMemoryStream* pStream ) { mpHyperlinkRecord.reset( pStream ); } - bool hasInteraction() { return mbHasInteraction; } const std::unique_ptr< SvMemoryStream >& getHyperlinkRecord() { return mpHyperlinkRecord; } }; @@ -1191,16 +1189,14 @@ public: @param nBytes The number of bytes to be inserted into the stream. - @param bExpandEndOfAtom If set to true, an atom that currently ends - exactly at the current stream position will be expanded to include - the inserted data. If set to false, an atom that currently ends - exactly at the current stream position will not be expanded to - include the inserted data (used to insert e.g. a new atom after an - existing atom). Note that containers that end exactly at the - current stream position are always expanded to include the inserted - data. + An atom that currently ends + exactly at the current stream position will not be expanded to + include the inserted data (used to insert e.g. a new atom after an + existing atom). Note that containers that end exactly at the + current stream position are always expanded to include the inserted + data. */ - void InsertAtCurrentPos( sal_uInt32 nBytes, bool bExpandEndOfAtom ); + void InsertAtCurrentPos( sal_uInt32 nBytes ); void InsertPersistOffset( sal_uInt32 nKey, sal_uInt32 nOffset ); // It is not being checked if this key is already in the PersistantTable void ReplacePersistOffset( sal_uInt32 nKey, sal_uInt32 nOffset ); diff --git a/include/filter/msfilter/mstoolbar.hxx b/include/filter/msfilter/mstoolbar.hxx index a1ff72c4205b..2696ae84e697 100644 --- a/include/filter/msfilter/mstoolbar.hxx +++ b/include/filter/msfilter/mstoolbar.hxx @@ -62,7 +62,7 @@ public: OUString MSOCommandToOOCommand( sal_Int16 msoCmd ); OUString MSOTCIDToOOCommand( sal_Int16 msoTCID ); SfxObjectShell& GetDocShell() { return mrDocSh; } - bool createMenu( const OUString& rName, const css::uno::Reference< css::container::XIndexAccess >& xMenuDesc, bool bPersist ); + bool createMenu( const OUString& rName, const css::uno::Reference< css::container::XIndexAccess >& xMenuDesc ); }; class MSFILTER_DLLPUBLIC TBBase diff --git a/include/filter/msfilter/svdfppt.hxx b/include/filter/msfilter/svdfppt.hxx index 4bef1890b4a7..5efa503394cb 100644 --- a/include/filter/msfilter/svdfppt.hxx +++ b/include/filter/msfilter/svdfppt.hxx @@ -600,8 +600,7 @@ public: Size GetPageSize() const; SdrObject* ImportPageBackgroundObject( const SdrPage& rPage, - sal_uInt32& nBgFileOffset, - bool bForce + sal_uInt32& nBgFileOffset ); bool IsNoteOrHandout( sal_uInt16 nPageNum, PptPageKind ePageKind ) const; bool HasMasterPage( @@ -1289,9 +1288,7 @@ public: mpPPTImporter ( pPPTImporter ) {}; bool ReadOCXStream( tools::SvRef<SotStorage>& rSrc1, - css::uno::Reference< - css::drawing::XShape > *pShapeRef=nullptr, - bool bFloatingCtrl=false ); + css::uno::Reference<css::drawing::XShape > *pShapeRef=nullptr ); virtual bool InsertControl( const css::uno::Reference< css::form::XFormComponent > &rFComp, const css::awt::Size& rSize, |