diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-03 15:06:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-05 08:53:47 +0200 |
commit | 93a9b70c7fe4d68f8d41edb25bc00bcac4439667 (patch) | |
tree | 4ed9020aecb400df3b6805e163a360b5c8bee888 /include | |
parent | ac11e45bad895e9f7de0b38fe22b7f2acf8c8e4b (diff) |
loplugin:checkunusedparams in svtools
Change-Id: Iea68d7c0683740acaf4f85c14efe2a33e0cf13e7
Reviewed-on: https://gerrit.libreoffice.org/37201
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/brwbox.hxx | 3 | ||||
-rw-r--r-- | include/svtools/editbrowsebox.hxx | 2 | ||||
-rw-r--r-- | include/svtools/grfmgr.hxx | 3 | ||||
-rw-r--r-- | include/svtools/headbar.hxx | 2 | ||||
-rw-r--r-- | include/svtools/htmlout.hxx | 3 | ||||
-rw-r--r-- | include/svtools/ivctrl.hxx | 4 | ||||
-rw-r--r-- | include/svtools/svlbitm.hxx | 2 | ||||
-rw-r--r-- | include/svtools/tabbar.hxx | 2 | ||||
-rw-r--r-- | include/svtools/toolbarmenu.hxx | 2 | ||||
-rw-r--r-- | include/svtools/transfer.hxx | 14 | ||||
-rw-r--r-- | include/svtools/unoimap.hxx | 2 |
11 files changed, 16 insertions, 23 deletions
diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index 58689dab7c81..0617373ba52e 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -506,8 +506,7 @@ public: bool bComplete = false ) const; long GetRowAtYPosPixel( long nY, bool bRelToBrowser = true ) const; - sal_uInt16 GetColumnAtXPosPixel( long nX, - bool bRelToBrowser = true ) const; + sal_uInt16 GetColumnAtXPosPixel( long nX ) const; // invalidations void Clear(); diff --git a/include/svtools/editbrowsebox.hxx b/include/svtools/editbrowsebox.hxx index 0a144c69e6a9..c71d57e42461 100644 --- a/include/svtools/editbrowsebox.hxx +++ b/include/svtools/editbrowsebox.hxx @@ -579,7 +579,7 @@ namespace svt virtual bool IsCursorMoveAllowed(long nNewRow, sal_uInt16 nNewColId) const override; - void PaintTristate(OutputDevice& rDev, const tools::Rectangle& rRect, const TriState& eState, bool _bEnabled=true) const; + void PaintTristate(const tools::Rectangle& rRect, const TriState& eState, bool _bEnabled=true) const; void AsynchGetFocus(); // secure starting of StartEditHdl diff --git a/include/svtools/grfmgr.hxx b/include/svtools/grfmgr.hxx index 22c65ff2a329..6693bc20328d 100644 --- a/include/svtools/grfmgr.hxx +++ b/include/svtools/grfmgr.hxx @@ -509,7 +509,6 @@ private: const Size& rSz, GraphicObject& rObj, const GraphicAttr& rAttr, - const GraphicManagerDrawFlags nFlags, bool& rCached ); @@ -519,7 +518,6 @@ private: const Size& rSz, const BitmapEx& rBmpEx, const GraphicAttr& rAttr, - const GraphicManagerDrawFlags nFlags, BitmapEx* pBmpEx = nullptr ); static bool SVT_DLLPRIVATE ImplCreateOutput( @@ -528,7 +526,6 @@ private: const Size& rSz, const GDIMetaFile& rMtf, const GraphicAttr& rAttr, - const GraphicManagerDrawFlags nFlags, GDIMetaFile& rOutMtf, BitmapEx& rOutBmpEx ); diff --git a/include/svtools/headbar.hxx b/include/svtools/headbar.hxx index be4c5af01bb3..2867ebff6b94 100644 --- a/include/svtools/headbar.hxx +++ b/include/svtools/headbar.hxx @@ -256,7 +256,7 @@ private: SVT_DLLPRIVATE sal_uInt16 ImplHitTest( const Point& rPos, long& nMouseOff, sal_uInt16& nPos ) const; SVT_DLLPRIVATE void ImplInvertDrag( sal_uInt16 nStartPos, sal_uInt16 nEndPos ); SVT_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, bool bHigh, - const tools::Rectangle& rItemRect, const tools::Rectangle* pRect, DrawFlags nFlags); + const tools::Rectangle& rItemRect, const tools::Rectangle* pRect); SVT_DLLPRIVATE void ImplDrawItem(vcl::RenderContext& rRenderContext, sal_uInt16 nPos, bool bHigh, const tools::Rectangle* pRect); SVT_DLLPRIVATE void ImplUpdate( sal_uInt16 nPos, diff --git a/include/svtools/htmlout.hxx b/include/svtools/htmlout.hxx index 33c302bc8b42..979741af0f85 100644 --- a/include/svtools/htmlout.hxx +++ b/include/svtools/htmlout.hxx @@ -68,8 +68,7 @@ struct HTMLOutFuncs OUString *pNonConvertableChars = nullptr ); SVT_DLLPUBLIC static SvStream& Out_Hex( SvStream&, sal_uLong nHex, sal_uInt8 nLen, rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252 ); - SVT_DLLPUBLIC static SvStream& Out_Color( SvStream&, const Color&, - rtl_TextEncoding eDestEnc = RTL_TEXTENCODING_MS_1252 ); + SVT_DLLPUBLIC static SvStream& Out_Color( SvStream&, const Color& ); SVT_DLLPUBLIC static SvStream& Out_ImageMap( SvStream&, const OUString&, const ImageMap&, const OUString&, const HTMLOutEvent *pEventTable, bool bOutStarBasic, diff --git a/include/svtools/ivctrl.hxx b/include/svtools/ivctrl.hxx index 710069c1baf9..44719ee41b98 100644 --- a/include/svtools/ivctrl.hxx +++ b/include/svtools/ivctrl.hxx @@ -211,9 +211,7 @@ protected: const Point& rPos, OutputDevice& rDev ); - static OUString GetEntryText( - SvxIconChoiceCtrlEntry* pEntry, - bool bInplaceEdit ); + static OUString GetEntryText( SvxIconChoiceCtrlEntry* pEntry ); virtual void FillLayoutData() const override; diff --git a/include/svtools/svlbitm.hxx b/include/svtools/svlbitm.hxx index c4703e53b9d6..c9db0cbf5a46 100644 --- a/include/svtools/svlbitm.hxx +++ b/include/svtools/svlbitm.hxx @@ -156,7 +156,7 @@ public: SvViewDataItem* pViewData = nullptr) override; virtual SvLBoxItemType GetType() const override; - bool ClickHdl(SvTreeListBox* pView, SvTreeListEntry* ); + bool ClickHdl( SvTreeListEntry* ); virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx index 849c756a1feb..26f78e6f69f9 100644 --- a/include/svtools/tabbar.hxx +++ b/include/svtools/tabbar.hxx @@ -349,7 +349,7 @@ private: SVT_DLLPRIVATE void ImplSelect(); SVT_DLLPRIVATE void ImplActivatePage(); SVT_DLLPRIVATE bool ImplDeactivatePage(); - SVT_DLLPRIVATE void ImplPrePaint(vcl::RenderContext& rRenderContext); + SVT_DLLPRIVATE void ImplPrePaint(); SVT_DLLPRIVATE ImplTabBarItem* ImplGetLastTabBarItem( sal_uInt16 nItemCount ); DECL_DLLPRIVATE_LINK(ImplClickHdl, Button*, void); diff --git a/include/svtools/toolbarmenu.hxx b/include/svtools/toolbarmenu.hxx index 317b65c37932..3135bf2a7f8d 100644 --- a/include/svtools/toolbarmenu.hxx +++ b/include/svtools/toolbarmenu.hxx @@ -129,7 +129,7 @@ private: void implPaint(vcl::RenderContext& rRenderContext, ToolbarMenuEntry* pThisOnly = nullptr, bool bHighlight = false); void implHighlightEntry(vcl::RenderContext& rRenderContext, int nHighlightEntry); - void implHighlightAtPosition(const MouseEvent& rMEvt, bool bMBDown); + void implHighlightAtPosition(const MouseEvent& rMEvt); void implChangeHighlightEntry( int nEntry ); void implSelectEntry( int nSelectedEntry ); diff --git a/include/svtools/transfer.hxx b/include/svtools/transfer.hxx index 623721180bae..8a9e0bb180ea 100644 --- a/include/svtools/transfer.hxx +++ b/include/svtools/transfer.hxx @@ -217,13 +217,13 @@ protected: bool HasFormat( SotClipboardFormatId nFormat ); void ClearFormats(); - bool SetAny( const css::uno::Any& rAny, const css::datatransfer::DataFlavor& rFlavor ); + bool SetAny( const css::uno::Any& rAny ); bool SetString( const OUString& rString, const css::datatransfer::DataFlavor& rFlavor ); bool SetBitmapEx( const BitmapEx& rBitmap, const css::datatransfer::DataFlavor& rFlavor ); - bool SetGDIMetaFile( const GDIMetaFile& rMtf, const css::datatransfer::DataFlavor& rFlavor ); - bool SetGraphic( const Graphic& rGraphic, const css::datatransfer::DataFlavor& rFlavor ); - bool SetImageMap( const ImageMap& rIMap, const css::datatransfer::DataFlavor& rFlavor ); - bool SetTransferableObjectDescriptor( const TransferableObjectDescriptor& rDesc, const css::datatransfer::DataFlavor& rFlavor ); + bool SetGDIMetaFile( const GDIMetaFile& rMtf ); + bool SetGraphic( const Graphic& rGraphic ); + bool SetImageMap( const ImageMap& rIMap ); + bool SetTransferableObjectDescriptor( const TransferableObjectDescriptor& rDesc ); bool SetINetBookmark( const INetBookmark& rBmk, const css::datatransfer::DataFlavor& rFlavor ); bool SetINetImage( const INetImage& rINtImg, const css::datatransfer::DataFlavor& rFlavor ); bool SetObject( void* pUserObject, SotClipboardFormatId nUserObjectId, const css::datatransfer::DataFlavor& rFlavor ); @@ -333,7 +333,7 @@ public: bool GetImageMap( const css::datatransfer::DataFlavor& rFlavor, ImageMap& rImap ); bool GetTransferableObjectDescriptor( SotClipboardFormatId nFormat, TransferableObjectDescriptor& rDesc ); - bool GetTransferableObjectDescriptor( const css::datatransfer::DataFlavor& rFlavor, TransferableObjectDescriptor& rDesc ); + bool GetTransferableObjectDescriptor( TransferableObjectDescriptor& rDesc ); bool GetINetBookmark( SotClipboardFormatId nFormat, INetBookmark& rBmk ); bool GetINetBookmark( const css::datatransfer::DataFlavor& rFlavor, INetBookmark& rBmk ); @@ -342,7 +342,7 @@ public: bool GetINetImage( const css::datatransfer::DataFlavor& rFlavor, INetImage& rINtImg ); bool GetFileList( SotClipboardFormatId nFormat, FileList& rFileList ); - bool GetFileList( const css::datatransfer::DataFlavor& rFlavor, FileList& rFileList ); + bool GetFileList( FileList& rFileList ); css::uno::Sequence<sal_Int8> GetSequence( SotClipboardFormatId nFormat, const OUString& rDestDoc ); css::uno::Sequence<sal_Int8> GetSequence( const css::datatransfer::DataFlavor& rFlavor, const OUString& rDestDoc ); diff --git a/include/svtools/unoimap.hxx b/include/svtools/unoimap.hxx index 98c437651269..7ce4814e6b83 100644 --- a/include/svtools/unoimap.hxx +++ b/include/svtools/unoimap.hxx @@ -30,7 +30,7 @@ SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMapRectangle SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMapCircleObject_createInstance( const SvEventDescription* pSupportedMacroItems ); SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMapPolygonObject_createInstance( const SvEventDescription* pSupportedMacroItems ); -SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMap_createInstance( const SvEventDescription* pSupportedMacroItems ); +SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMap_createInstance(); SVT_DLLPUBLIC css::uno::Reference< css::uno::XInterface > SvUnoImageMap_createInstance( const ImageMap& rMap, const SvEventDescription* pSupportedMacroItems ); SVT_DLLPUBLIC bool SvUnoImageMap_fillImageMap( const css::uno::Reference< css::uno::XInterface >& xImageMap, ImageMap& rMap ); |