diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-12 13:39:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-12-13 07:19:38 +0100 |
commit | d2bc01ff10f93a710296c7355efa8b11c6be0f56 (patch) | |
tree | 150a768a76778bd8205970c22eb67405375b70e0 /include | |
parent | Switch Android armeabi-v7a to libc++/libc++abi/libunwind too (diff) | |
download | core-d2bc01ff10f93a710296c7355efa8b11c6be0f56.tar.gz core-d2bc01ff10f93a710296c7355efa8b11c6be0f56.zip |
loplugin:constantparam
Change-Id: I389f98d06058ba65a8c2d4df2bf7d4e5102659ad
Reviewed-on: https://gerrit.libreoffice.org/65017
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/tabdlg.hxx | 5 | ||||
-rw-r--r-- | include/svtools/brwbox.hxx | 2 | ||||
-rw-r--r-- | include/vcl/bitmap.hxx | 17 |
3 files changed, 5 insertions, 19 deletions
diff --git a/include/sfx2/tabdlg.hxx b/include/sfx2/tabdlg.hxx index 0719e6cb61df..6b40c8098ae4 100644 --- a/include/sfx2/tabdlg.hxx +++ b/include/sfx2/tabdlg.hxx @@ -123,13 +123,12 @@ protected: public: SfxTabDialog(vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription, - const SfxItemSet * = nullptr, bool bEditFmt = false); + const SfxItemSet * = nullptr); virtual ~SfxTabDialog() override; virtual void dispose() override; sal_uInt16 AddTabPage( const OString& rName, // Name of the label for the page in the notebook .ui - CreateTabPage pCreateFunc, // != 0 - GetTabPageRanges pRangesFunc); // can be 0 + CreateTabPage pCreateFunc); // != 0 void AddTabPage( sal_uInt16 nId, const OUString &rRiderText, diff --git a/include/svtools/brwbox.hxx b/include/svtools/brwbox.hxx index 983854a6953a..31c28e8b8e11 100644 --- a/include/svtools/brwbox.hxx +++ b/include/svtools/brwbox.hxx @@ -295,7 +295,7 @@ private: bool GoToColumnId( sal_uInt16 nColId, bool bMakeVisible, bool bRowColMove = false); void SelectColumnPos( sal_uInt16 nCol, bool _bSelect, bool bMakeVisible); - void ImplPaintData(OutputDevice& _rOut, const tools::Rectangle& _rRect, bool _bForeignDevice, bool _bDrawSelections); + void ImplPaintData(OutputDevice& _rOut, const tools::Rectangle& _rRect, bool _bForeignDevice); bool PaintCursorIfHiddenOnce() const { return !m_bFocusOnlyCursor && !HasFocus(); } diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index b67850196b7a..c1a353f643c8 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -59,16 +59,6 @@ enum class BmpScaleFlag }; -enum class BmpDitherFlags -{ - NONE = 0x0000, - Floyd = 0x0001, -}; -namespace o3tl -{ - template<> struct typed_flags<BmpDitherFlags> : is_typed_flags<BmpDitherFlags, 0x01> {}; -} - #define BMP_COL_TRANS Color( 252, 3, 251 ) enum class BmpConversion @@ -172,16 +162,14 @@ public: */ bool Convert( BmpConversion eConversion ); - /** Apply a dither algorithm to the bitmap + /** Apply a Floyd dither algorithm to the bitmap This method dithers the bitmap inplace, i.e. a true color bitmap is converted to a paletted bitmap, reducing the color deviation by error diffusion. - @param nDitherFlags - The algorithm to be used for dithering */ - bool Dither( BmpDitherFlags nDitherFlags ); + bool Dither(); /** Crop the bitmap @@ -533,7 +521,6 @@ public: SAL_DLLPRIVATE void ImplSetSalBitmap( const std::shared_ptr<SalBitmap>& xImpBmp ); SAL_DLLPRIVATE bool ImplMakeGreyscales( sal_uInt16 nGreyscales ); - SAL_DLLPRIVATE bool ImplDitherFloyd(); public: |