diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-19 13:06:07 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-22 08:18:08 +0200 |
commit | f17f977d0ad5b4c51a8f58b43901f72de001a56d (patch) | |
tree | 24e25caa72db9d21b1728f52f17758ab103e9c76 /vcl/source | |
parent | acd1c51791bdf522d7ffd8dd225fb59cd2eb17ff (diff) |
loplugin:write only fields
Change-Id: I45895e9845a9037da207f001fece427452ed499f
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/image/ImageList.cxx | 18 | ||||
-rw-r--r-- | vcl/source/window/msgbox.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/splitwin.cxx | 4 |
3 files changed, 8 insertions, 16 deletions
diff --git a/vcl/source/image/ImageList.cxx b/vcl/source/image/ImageList.cxx index 4c88c99b4c7b..226352997900 100644 --- a/vcl/source/image/ImageList.cxx +++ b/vcl/source/image/ImageList.cxx @@ -37,17 +37,13 @@ #include <rtl/strbuf.hxx> #endif -ImageList::ImageList( sal_uInt16 nInit, sal_uInt16 nGrow ) : - mpImplData( nullptr ), - mnInitSize( nInit ), - mnGrowSize( nGrow ) +ImageList::ImageList() : + mpImplData( nullptr ) { } ImageList::ImageList( const ResId& rResId ) : - mpImplData( nullptr ), - mnInitSize( 1 ), - mnGrowSize( 4 ) + mpImplData( nullptr ) { SAL_INFO( "vcl.gdi", "vcl: ImageList::ImageList( const ResId& rResId )" ); @@ -92,9 +88,7 @@ ImageList::ImageList( const ResId& rResId ) : ImageList::ImageList( const std::vector< OUString >& rNameVector, const OUString& rPrefix) : - mpImplData( nullptr ), - mnInitSize( 1 ), - mnGrowSize( 4 ) + mpImplData( nullptr ) { SAL_INFO( "vcl.gdi", "vcl: ImageList::ImageList(const vector< OUString >& ..." ); @@ -108,9 +102,7 @@ ImageList::ImageList( const std::vector< OUString >& rNameVector, } ImageList::ImageList( const ImageList& rImageList ) : - mpImplData( rImageList.mpImplData ), - mnInitSize( rImageList.mnInitSize ), - mnGrowSize( rImageList.mnGrowSize ) + mpImplData( rImageList.mpImplData ) { if( mpImplData ) diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx index 600a1a88e1fe..7fb7f28dd12b 100644 --- a/vcl/source/window/msgbox.cxx +++ b/vcl/source/window/msgbox.cxx @@ -41,7 +41,7 @@ static void ImplInitMsgBoxImageList() if ( !pSVData->maWinData.mpMsgBoxImgList ) { ResMgr* pResMgr = ImplGetResMgr(); - pSVData->maWinData.mpMsgBoxImgList = new ImageList(4); + pSVData->maWinData.mpMsgBoxImgList = new ImageList(); if( pResMgr ) { Color aNonAlphaMask( 0xC0, 0xC0, 0xC0 ); diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index 36639b1a9364..5b644826b5ef 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -1822,7 +1822,7 @@ void SplitWindow::ImplDrawAutoHide(vcl::RenderContext& rRenderContext, bool bInP if (pResMgr) { Color aNonAlphaMask( 0x00, 0x00, 0xFF ); - pSVData->maCtrlData.mpSplitHPinImgList = new ImageList(4); + pSVData->maCtrlData.mpSplitHPinImgList = new ImageList; pSVData->maCtrlData.mpSplitHPinImgList->InsertFromHorizontalBitmap ( ResId( SV_RESID_BITMAP_SPLITHPIN, *pResMgr ), 4, &aNonAlphaMask ); } @@ -1834,7 +1834,7 @@ void SplitWindow::ImplDrawAutoHide(vcl::RenderContext& rRenderContext, bool bInP if (!pSVData->maCtrlData.mpSplitVPinImgList) { ResMgr* pResMgr = ImplGetResMgr(); - pSVData->maCtrlData.mpSplitVPinImgList = new ImageList(4); + pSVData->maCtrlData.mpSplitVPinImgList = new ImageList; if (pResMgr) { Color aNonAlphaMask( 0x00, 0x00, 0xFF ); |