diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-25 15:00:10 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-26 07:43:13 +0000 |
commit | 30d8216ba3b471df7276abcd8c8744cd426e6967 (patch) | |
tree | 28b092f04e6e0674f783799c90c743c2f9224ee3 /vcl/inc | |
parent | 2d162b1c70c1bc16d682b74ee1d0b13a9a80717d (diff) |
loplugin:unuseddefaultparam in vcl/
Change-Id: Ic09d160ed6e3cdcd95bc04844ee8f20cfcb286ec
Reviewed-on: https://gerrit.libreoffice.org/22698
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/listbox.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/printdlg.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/salgdi.hxx | 8 | ||||
-rw-r--r-- | vcl/inc/sallayout.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/unx/fontmanager.hxx | 5 | ||||
-rw-r--r-- | vcl/inc/unx/saldisp.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/unx/wmadaptor.hxx | 3 |
7 files changed, 11 insertions, 13 deletions
diff --git a/vcl/inc/listbox.hxx b/vcl/inc/listbox.hxx index f316e8f7501d..66dac44e5949 100644 --- a/vcl/inc/listbox.hxx +++ b/vcl/inc/listbox.hxx @@ -248,7 +248,7 @@ protected: bool SelectEntries( sal_Int32 nSelect, LB_EVENT_TYPE eLET, bool bShift = false, bool bCtrl = false, bool bSelectPosChange = false ); void ImplPaint(vcl::RenderContext& rRenderContext, sal_Int32 nPos, bool bErase = false, bool bLayout = false); - void ImplDoPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect, bool bLayout = false); + void ImplDoPaint(vcl::RenderContext& rRenderContext, const Rectangle& rRect); void ImplCalcMetrics(); void ImplUpdateEntryMetrics( ImplEntryType& rEntry ); void ImplCallSelect(); diff --git a/vcl/inc/printdlg.hxx b/vcl/inc/printdlg.hxx index 8c59965392a7..410257fbe6b5 100644 --- a/vcl/inc/printdlg.hxx +++ b/vcl/inc/printdlg.hxx @@ -274,7 +274,7 @@ namespace vcl virtual ~PrintProgressDialog(); virtual void dispose() override; bool isCanceled() const { return mbCanceled; } - void setProgress( int i_nCurrent, int i_nMax = -1 ); + void setProgress( int i_nCurrent ); void tick(); void reset(); }; diff --git a/vcl/inc/salgdi.hxx b/vcl/inc/salgdi.hxx index 1ded1a70941b..451be62e2924 100644 --- a/vcl/inc/salgdi.hxx +++ b/vcl/inc/salgdi.hxx @@ -230,12 +230,12 @@ public: SalLayoutFlags GetLayout() { return m_nLayout; } void SetLayout( SalLayoutFlags aLayout ) { m_nLayout = aLayout;} - void mirror( long& nX, const OutputDevice *pOutDev, bool bBack = false ) const; + void mirror( long& nX, const OutputDevice *pOutDev ) const; void mirror( long& nX, long& nWidth, const OutputDevice *pOutDev, bool bBack = false ) const; - bool mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev, bool bBack = false ) const; + bool mirror( sal_uInt32 nPoints, const SalPoint *pPtAry, SalPoint *pPtAry2, const OutputDevice *pOutDev ) const; void mirror( Rectangle& rRect, const OutputDevice*, bool bBack = false ) const; - void mirror( vcl::Region& rRgn, const OutputDevice *pOutDev, bool bBack = false ) const; - void mirror( ImplControlValue&, const OutputDevice*, bool bBack = false ) const; + void mirror( vcl::Region& rRgn, const OutputDevice *pOutDev ) const; + void mirror( ImplControlValue&, const OutputDevice* ) const; basegfx::B2DPoint mirror( const basegfx::B2DPoint& i_rPoint, const OutputDevice *pOutDev, bool bBack = false ) const; basegfx::B2DPolygon mirror( const basegfx::B2DPolygon& i_rPoly, const OutputDevice *pOutDev, bool bBack = false ) const; basegfx::B2DPolyPolygon mirror( const basegfx::B2DPolyPolygon& i_rPoly, const OutputDevice *pOutDev, bool bBack = false ) const; diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx index f27834f7b647..daae365e065c 100644 --- a/vcl/inc/sallayout.hxx +++ b/vcl/inc/sallayout.hxx @@ -251,7 +251,7 @@ public: virtual void AdjustLayout( ImplLayoutArgs& ) override; virtual void InitFont() const override; - void SetIncomplete(bool bIncomplete = true); + void SetIncomplete(bool bIncomplete); protected: virtual ~MultiSalLayout(); diff --git a/vcl/inc/unx/fontmanager.hxx b/vcl/inc/unx/fontmanager.hxx index 1ffe504f6700..99aae21e189e 100644 --- a/vcl/inc/unx/fontmanager.hxx +++ b/vcl/inc/unx/fontmanager.hxx @@ -412,7 +412,7 @@ public: bool getMetrics( fontID nFontID, sal_Unicode minCharacter, sal_Unicode maxCharacter, CharacterMetric* pArray, bool bVertical = false ) const; // get metrics for an array of sal_Unicode characters // the user is responsible to allocate pArray large enough - bool getMetrics( fontID nFontID, const sal_Unicode* pString, int nLen, CharacterMetric* pArray, bool bVertical = false ) const; + bool getMetrics( fontID nFontID, const sal_Unicode* pString, int nLen, CharacterMetric* pArray ) const; // get encoding vector of font, currently only for Type1 fonts // returns NULL if encoding vector is empty or font is not type1; @@ -454,8 +454,7 @@ public: const sal_GlyphId* pGlyphIDs, const sal_uInt8* pNewEncoding, sal_Int32* pWidths, - int nGlyphs, - bool bVertical = false + int nGlyphs ); void getGlyphWidths( fontID nFont, bool bVertical, diff --git a/vcl/inc/unx/saldisp.hxx b/vcl/inc/unx/saldisp.hxx index 68492542ff4c..daf25a5f3817 100644 --- a/vcl/inc/unx/saldisp.hxx +++ b/vcl/inc/unx/saldisp.hxx @@ -338,7 +338,7 @@ public: sal_uLong GetMaxRequestSize() const { return nMaxRequestSize_; } Time GetLastUserEventTime( bool bAlwaysReget = false ) const; - bool XIfEventWithTimeout( XEvent*, XPointer, X_if_predicate, long i_nTimeout = 1000 ) const; + bool XIfEventWithTimeout( XEvent*, XPointer, X_if_predicate ) const; SalXLib* GetXLib() const { return pXLib_; } SalI18N_InputMethod* GetInputMethod() const { return mpInputMethod; } diff --git a/vcl/inc/unx/wmadaptor.hxx b/vcl/inc/unx/wmadaptor.hxx index de3354955c2b..177ca34780a1 100644 --- a/vcl/inc/unx/wmadaptor.hxx +++ b/vcl/inc/unx/wmadaptor.hxx @@ -200,9 +200,8 @@ public: /* * attempt to switch the desktop to a certain workarea (ie. virtual desktops) - * if bConsiderWM is true, then on some WMs the call will not result in any action */ - void switchToWorkArea( int nWorkArea, bool bConsiderWM = true ) const; + void switchToWorkArea( int nWorkArea ) const; /* * sets window title |