diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-08 15:38:59 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-08-11 06:05:32 +0000 |
commit | 3716b144265dda695d7dd447dbe692a3f84c588e (patch) | |
tree | 6b8d8751e306841102f6808fbb5403dac193c35c /vcl | |
parent | b796b24793827583550279d40bfe565c66ad284d (diff) |
loplugin:constantparam
Change-Id: Ia06b9b189033b9409d7a59a211866f66a0614886
Reviewed-on: https://gerrit.libreoffice.org/28016
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/salbmp.cxx | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 7b2c3f38e954..af2a0d0317ca 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2205,8 +2205,8 @@ VCL_BUILDER_FACTORY(NotebookbarTabControl); sal_uInt16 NotebookbarTabControl::m_nHeaderHeight = 0; -NotebookbarTabControl::NotebookbarTabControl(vcl::Window* pParent, WinBits nStyle) - : TabControl(pParent, nStyle) +NotebookbarTabControl::NotebookbarTabControl(vcl::Window* pParent) + : TabControl(pParent, WB_STDTABCONTROL) , bLastContextWasSupported(true) , eLastContext(vcl::EnumContext::Context::Context_Any) { diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx index 95665fd3b03f..bcba7e6ee4ce 100644 --- a/vcl/unx/generic/gdi/salbmp.cxx +++ b/vcl/unx/generic/gdi/salbmp.cxx @@ -1067,10 +1067,9 @@ struct ImplBmpObj { X11SalBitmap* mpBmp; sal_uLong mnMemSize; - sal_uLong mnFlags; - ImplBmpObj( X11SalBitmap* pBmp, sal_uLong nMemSize, sal_uLong nFlags ) : - mpBmp( pBmp ), mnMemSize( nMemSize ), mnFlags( nFlags ) {} + ImplBmpObj( X11SalBitmap* pBmp, sal_uLong nMemSize ) : + mpBmp( pBmp ), mnMemSize( nMemSize ) {} }; ImplSalBitmapCache::ImplSalBitmapCache() : @@ -1104,10 +1103,9 @@ void ImplSalBitmapCache::ImplAdd( X11SalBitmap* pBmp, sal_uLong nMemSize ) { mnTotalSize -= pObj->mnMemSize; pObj->mnMemSize = nMemSize; - pObj->mnFlags = 0; } else - maBmpList.push_back( new ImplBmpObj( pBmp, nMemSize, 0 ) ); + maBmpList.push_back( new ImplBmpObj( pBmp, nMemSize ) ); } void ImplSalBitmapCache::ImplRemove( X11SalBitmap* pBmp ) |