From 2600220f53f51be2d017b012c56293bf8cf835ef Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 8 Mar 2016 10:51:28 +0200 Subject: loplugin:constantparams in vcl Change-Id: I2114436f4bef3ac71a3035a206186cefaf88bca1 Reviewed-on: https://gerrit.libreoffice.org/23023 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vcl/outdev.hxx | 2 +- include/vcl/print.hxx | 6 +++--- include/vcl/threadex.hxx | 4 ++-- include/vcl/window.hxx | 8 ++++---- include/vcl/wrkwin.hxx | 5 ++--- 5 files changed, 12 insertions(+), 13 deletions(-) (limited to 'include') diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx index 2d8eeec6c322..fc0f765e2e26 100644 --- a/include/vcl/outdev.hxx +++ b/include/vcl/outdev.hxx @@ -1303,7 +1303,7 @@ public: const OutputDevice* pOutDev = nullptr ); SAL_DLLPRIVATE void ImplInitFontList() const; - SAL_DLLPRIVATE void ImplUpdateFontData( bool bNewFontLists ); + SAL_DLLPRIVATE void ImplUpdateFontData(); //drop font data for all outputdevices. //If bNewFontLists is true then empty lists of system fonts diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index a36d7b2c5ee3..7664bc47c237 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -209,7 +209,7 @@ private: SAL_DLLPRIVATE void ImplInitData(); SAL_DLLPRIVATE void ImplInit( SalPrinterQueueInfo* pInfo ); - SAL_DLLPRIVATE void ImplInitDisplay( const vcl::Window* pWindow ); + SAL_DLLPRIVATE void ImplInitDisplay(); SAL_DLLPRIVATE static SalPrinterQueueInfo* ImplGetQueueInfo( const OUString& rPrinterName, const OUString* pDriver ); SAL_DLLPRIVATE void ImplUpdatePageData(); @@ -323,8 +323,8 @@ public: Paper GetPaper() const; static OUString GetPaperName( Paper ePaper ); - /** @return A UI string for the current paper; i_bPaperUser == false means an empty string for PAPER_USER */ - OUString GetPaperName( bool i_bPaperUser = true ) const; + /** @return A UI string for the current paper; an empty string for PAPER_USER */ + OUString GetPaperName() const; /** @return Number of available paper formats */ int GetPaperInfoCount() const; diff --git a/include/vcl/threadex.hxx b/include/vcl/threadex.hxx index 358f1ca1849d..75724446e993 100644 --- a/include/vcl/threadex.hxx +++ b/include/vcl/threadex.hxx @@ -45,10 +45,10 @@ namespace vcl virtual ~SolarThreadExecutor(); virtual long doIt() = 0; - long execute() { return impl_execute( nullptr ); } + long execute() { return impl_execute(); } private: - long impl_execute( const TimeValue* _pTimeout ); + long impl_execute(); }; namespace solarthread { diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index 6abc34b4bf5b..e1922d72ed53 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -603,7 +603,7 @@ protected: SAL_DLLPRIVATE void ImplInvalidateParentFrameRegion( vcl::Region& rRegion ); SAL_DLLPRIVATE void ImplValidateFrameRegion( const vcl::Region* rRegion, ValidateFlags nFlags ); - SAL_DLLPRIVATE void ImplValidate( const vcl::Region* rRegion, ValidateFlags nFlags ); + SAL_DLLPRIVATE void ImplValidate( ValidateFlags nFlags ); SAL_DLLPRIVATE void ImplMoveInvalidateRegion( const Rectangle& rRect, long nHorzScroll, long nVertScroll, bool bChildren ); SAL_DLLPRIVATE void ImplMoveAllInvalidateRegions( const Rectangle& rRect, long nHorzScroll, long nVertScroll, bool bChildren ); @@ -844,7 +844,7 @@ public: void IncrementLockCount(); void DecrementLockCount(); - bool IsLocked( bool bChildren = false ) const; + bool IsLocked() const; // returns the input language used for the last key stroke // may be LANGUAGE_DONTKNOW if not supported by the OS @@ -905,7 +905,7 @@ public: void SetInputContext( const InputContext& rInputContext ); const InputContext& GetInputContext() const; - void EndExtTextInput( EndExtTextInputFlags nFlags ); + void EndExtTextInput(); void SetCursorRect( const Rectangle* pRect = nullptr, long nExtTextInputWidth = 0 ); const Rectangle* GetCursorRect() const; long GetCursorExtTextInputWidth() const; @@ -1074,7 +1074,7 @@ public: // window extents including border and decoration Rectangle GetWindowExtentsRelative( vcl::Window *pRelativeWindow ) const; // window extents of the client window, coordinates to be used in SetPosPixel - Rectangle GetClientWindowExtentsRelative( vcl::Window *pRelativeWindow ) const; + Rectangle GetClientWindowExtentsRelative() const; bool IsScrollable() const; virtual void Scroll( long nHorzScroll, long nVertScroll, diff --git a/include/vcl/wrkwin.hxx b/include/vcl/wrkwin.hxx index 0fb812c8fde6..e5e13360e7e1 100644 --- a/include/vcl/wrkwin.hxx +++ b/include/vcl/wrkwin.hxx @@ -87,10 +87,9 @@ public: PresentationFlags nFlags, sal_uInt32 nDisplayScreen ); /** - @overload void StartPresentationMode( bool bPresentation, PresentationFlags nFlags, sal_uInt32 nDisplayScreen) + @overload void StartPresentationMode( PresentationFlags nFlags, sal_uInt32 nDisplayScreen) */ - void StartPresentationMode( bool bPresentation = true, - PresentationFlags nFlags = PresentationFlags::NONE ); + void StartPresentationMode( PresentationFlags nFlags = PresentationFlags::NONE ); bool IsPresentationMode() const { return mbPresentationMode; } bool IsMinimized() const; -- cgit