diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-04 14:29:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-05 08:50:27 +0200 |
commit | ec38966951f28a1e1d4c97f01a550c87f152cbc8 (patch) | |
tree | e5a6e35accae72cf0535b1c34ba384bf2730f9d3 /include/svx | |
parent | 44bc7fc5609a4930e7236b43cf445920a2a3bc77 (diff) |
loplugin:checkunusedparams in svx(part3)
Change-Id: I4b9b749565750acc7f674957fd619870b0e29237
Reviewed-on: https://gerrit.libreoffice.org/37240
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svdedtv.hxx | 4 | ||||
-rw-r--r-- | include/svx/svdedxv.hxx | 4 | ||||
-rw-r--r-- | include/svx/svdglue.hxx | 4 | ||||
-rw-r--r-- | include/svx/svdhdl.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdlayer.hxx | 6 | ||||
-rw-r--r-- | include/svx/svdmodel.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdmrkv.hxx | 14 | ||||
-rw-r--r-- | include/svx/svdobj.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdograf.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdoole2.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdopath.hxx | 2 |
11 files changed, 21 insertions, 23 deletions
diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx index 6facb412144a..f849846f720a 100644 --- a/include/svx/svdedtv.hxx +++ b/include/svx/svdedtv.hxx @@ -289,8 +289,8 @@ public: // EndUndo(); void ReplaceObjectAtView(SdrObject* pOldObj, SdrPageView& rPV, SdrObject* pNewObj, bool bMark=true); - void SetNotPersistAttrToMarked(const SfxItemSet& rAttr, bool bReplaceAll); - void MergeNotPersistAttrFromMarked(SfxItemSet& rAttr, bool bOnlyHardAttr) const; + void SetNotPersistAttrToMarked(const SfxItemSet& rAttr); + void MergeNotPersistAttrFromMarked(SfxItemSet& rAttr) const; void MergeAttrFromMarked(SfxItemSet& rAttr, bool bOnlyHardAttr) const; SfxItemSet GetAttrFromMarked(bool bOnlyHardAttr) const; void SetAttrToMarked(const SfxItemSet& rAttr, bool bReplaceAll); diff --git a/include/svx/svdedxv.hxx b/include/svx/svdedxv.hxx index d35e398301b6..b1bcbec1d39e 100644 --- a/include/svx/svdedxv.hxx +++ b/include/svx/svdedxv.hxx @@ -104,14 +104,14 @@ protected: virtual SdrUndoManager* getSdrUndoManagerForEnhancedTextEdit() const; void ImpMoveCursorAfterChainingEvent(TextChainCursorManager *pCursorManager); - TextChainCursorManager *ImpHandleMotionThroughBoxesKeyInput(const KeyEvent& rKEvt, vcl::Window* pWin, bool *bOutHandled); + TextChainCursorManager *ImpHandleMotionThroughBoxesKeyInput(const KeyEvent& rKEvt, bool *bOutHandled); OutlinerView* ImpFindOutlinerView(vcl::Window* pWin) const; // Create a new OutlinerView at the heap and initialize all required parameters. // pTextEditObj, pTextEditPV and pTextEditOutliner have to be initialized - OutlinerView* ImpMakeOutlinerView(vcl::Window* pWin, bool bNoPaint, OutlinerView* pGivenView, SfxViewShell* pViewShell = nullptr) const; + OutlinerView* ImpMakeOutlinerView(vcl::Window* pWin, OutlinerView* pGivenView, SfxViewShell* pViewShell = nullptr) const; void ImpPaintOutlinerView(OutlinerView& rOutlView, const tools::Rectangle& rRect, OutputDevice& rTargetDevice) const; void ImpInvalidateOutlinerView(OutlinerView& rOutlView) const; diff --git a/include/svx/svdglue.hxx b/include/svx/svdglue.hxx index 3e4e8c89b4da..1db3ca9acce9 100644 --- a/include/svx/svdglue.hxx +++ b/include/svx/svdglue.hxx @@ -109,7 +109,7 @@ public: static SdrEscapeDirection EscAngleToDir(long nAngle); void Rotate(const Point& rRef, long nAngle, double sn, double cs, const SdrObject* pObj); void Mirror(const Point& rRef1, const Point& rRef2, long nAngle, const SdrObject* pObj); - void Shear (const Point& rRef, long nAngle, double tn, bool bVShear, const SdrObject* pObj); + void Shear (const Point& rRef, double tn, bool bVShear, const SdrObject* pObj); }; #define SDRGLUEPOINT_NOTFOUND 0xFFFF @@ -144,7 +144,7 @@ public: void Rotate(const Point& rRef, long nAngle, double sn, double cs, const SdrObject* pObj); void Mirror(const Point& rRef1, const Point& rRef2, const SdrObject* pObj); void Mirror(const Point& rRef1, const Point& rRef2, long nAngle, const SdrObject* pObj); - void Shear (const Point& rRef, long nAngle, double tn, bool bVShear, const SdrObject* pObj); + void Shear (const Point& rRef, double tn, bool bVShear, const SdrObject* pObj); }; diff --git a/include/svx/svdhdl.hxx b/include/svx/svdhdl.hxx index 4ce795b4e98a..1c83e09aac5d 100644 --- a/include/svx/svdhdl.hxx +++ b/include/svx/svdhdl.hxx @@ -168,7 +168,7 @@ protected: sdr::overlay::OverlayObject* CreateOverlayObject( const basegfx::B2DPoint& rPos, BitmapColorIndex eColIndex, BitmapMarkerKind eKindOfMarker, - OutputDevice& rOutDev, Point aMoveOutsideOffset = Point()); + Point aMoveOutsideOffset = Point()); static BitmapMarkerKind GetNextBigger(BitmapMarkerKind eKnd); public: diff --git a/include/svx/svdlayer.hxx b/include/svx/svdlayer.hxx index fef2ca52be40..13354503a42c 100644 --- a/include/svx/svdlayer.hxx +++ b/include/svx/svdlayer.hxx @@ -142,9 +142,9 @@ public: sal_uInt16 GetLayerPos(SdrLayer* pLayer) const; - SdrLayer* GetLayer(const OUString& rName, bool bInherited); - const SdrLayer* GetLayer(const OUString& rName, bool bInherited) const; - SdrLayerID GetLayerID(const OUString& rName, bool bInherited) const; + SdrLayer* GetLayer(const OUString& rName); + const SdrLayer* GetLayer(const OUString& rName) const; + SdrLayerID GetLayerID(const OUString& rName) const; SdrLayer* GetLayerPerID(sal_uInt16 nID) { return const_cast<SdrLayer*>(const_cast<const SdrLayerAdmin*>(this)->GetLayerPerID(nID)); } const SdrLayer* GetLayerPerID(sal_uInt16 nID) const; diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx index 996a05c765ba..281c3d3ad8bf 100644 --- a/include/svx/svdmodel.hxx +++ b/include/svx/svdmodel.hxx @@ -555,7 +555,7 @@ public: // Used as a fallback in *::ReadUserDataSequence() to process common properties void ReadUserDataSequenceValue(const css::beans::PropertyValue *pValue); - void WriteUserDataSequence(css::uno::Sequence < css::beans::PropertyValue >& rValues, bool bBrowse = false); + void WriteUserDataSequence(css::uno::Sequence < css::beans::PropertyValue >& rValues); /** returns the numbering type that is used to format page fields in drawing shapes */ virtual SvxNumType GetPageNumType() const; diff --git a/include/svx/svdmrkv.hxx b/include/svx/svdmrkv.hxx index 192f26b2b393..d2142ded5040 100644 --- a/include/svx/svdmrkv.hxx +++ b/include/svx/svdmrkv.hxx @@ -327,9 +327,8 @@ public: // Selects the first marked point (P1) which is hit by rPnt // and from there it searches the first non-marked point(P2). // In case of success the marking of - // P1 is deleted, a mark is set at P2 and sal_True is returned. - // With the parameter bPrev=sal_True the scan direction is turned to the other direction. - bool MarkNextPoint(const Point& rPnt, bool bPrev); + // P1 is deleted, a mark is set at P2 and true is returned. + bool MarkNextPoint(); // Search for the number of the suitable handle. In case of empty search result, // SAL_MAX_SIZE is returned. @@ -367,8 +366,8 @@ public: // Attention: With each change of the glue point status the handle list is re-calculated. // All previously saved SdrHdl* became invalid by this, the same with the point IDs! bool PickGluePoint(const Point& rPnt, SdrObject*& rpObj, sal_uInt16& rnId, SdrPageView*& rpPV) const; - bool MarkGluePoint(const SdrObject* pObj, sal_uInt16 nId, const SdrPageView* pPV, bool bUnmark=false); - void UnmarkGluePoint(const SdrObject* pObj, sal_uInt16 nId, const SdrPageView* pPV) { MarkGluePoint(pObj,nId,pPV,true); } + bool MarkGluePoint(const SdrObject* pObj, sal_uInt16 nId, bool bUnmark=false); + void UnmarkGluePoint(const SdrObject* pObj, sal_uInt16 nId) { MarkGluePoint(pObj,nId,true); } bool IsGluePointMarked(const SdrObject* pObj, sal_uInt16 nId) const; // Get the Hdl (handle) of a marked GluePoint. Non-marked @@ -382,9 +381,8 @@ public: // Selects the first marked point (P1) which is hit by rPnt // and from there it searches the first non-marked point(P2). // In case of success the marking of - // P1 is deleted, a mark is set at P2 and sal_True is returned. - // With the parameter bPrev=sal_True the scan direction is turned to the other direction. - bool MarkNextGluePoint(const Point& rPnt, bool bPrev); + // P1 is deleted, a mark is set at P2 and true is returned. + bool MarkNextGluePoint(); // Draw a selection frame for glue point marking. // This routine will just be started in case that HasMarkablePoints() returns sal_True. diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index d5c9149f34bc..9f8ef8f95422 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -656,7 +656,7 @@ public: void SetGlueReallyAbsolute(bool bOn); void NbcRotateGluePoints(const Point& rRef, long nAngle, double sn, double cs); void NbcMirrorGluePoints(const Point& rRef1, const Point& rRef2); - void NbcShearGluePoints (const Point& rRef, long nAngle, double tn, bool bVShear); + void NbcShearGluePoints (const Point& rRef, double tn, bool bVShear); // if bTail1 is true, line start, otherwise line end // if pObj is null disconnect diff --git a/include/svx/svdograf.hxx b/include/svx/svdograf.hxx index 07532267e8be..a8bc11bb2f94 100644 --- a/include/svx/svdograf.hxx +++ b/include/svx/svdograf.hxx @@ -157,7 +157,7 @@ public: const OUString& GetFileName() const { return aFileName;} const OUString& GetFilterName() const { return aFilterName;} - void StartAnimation(OutputDevice* pOutDev, const Point& rPoint, const Size& rSize); + void StartAnimation(); virtual void TakeObjInfo(SdrObjTransformInfoRec& rInfo) const override; virtual sal_uInt16 GetObjIdentifier() const override; diff --git a/include/svx/svdoole2.hxx b/include/svx/svdoole2.hxx index 2e71f0b835c2..fc9af9e3651a 100644 --- a/include/svx/svdoole2.hxx +++ b/include/svx/svdoole2.hxx @@ -58,7 +58,7 @@ private: SVX_DLLPRIVATE void SetGraphic_Impl(const Graphic* pGrf); // #i118485# helper added - SVX_DLLPRIVATE SdrObject* createSdrGrafObjReplacement(bool bAddText, bool bUseHCGraphic) const; + SVX_DLLPRIVATE SdrObject* createSdrGrafObjReplacement(bool bAddText) const; SVX_DLLPRIVATE void ImpSetVisAreaSize(); protected: diff --git a/include/svx/svdopath.hxx b/include/svx/svdopath.hxx index f4ad038f1e22..9b527eb3843e 100644 --- a/include/svx/svdopath.hxx +++ b/include/svx/svdopath.hxx @@ -124,7 +124,7 @@ public: // insert point sal_uInt32 NbcInsPointOld(const Point& rPos, bool bNewObj); - sal_uInt32 NbcInsPoint(sal_uInt32 i, const Point& rPos, bool bNewObj); + sal_uInt32 NbcInsPoint(const Point& rPos, bool bNewObj); // rip at given point SdrObject* RipPoint(sal_uInt32 nHdlNum, sal_uInt32& rNewPt0Index); |