diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-11 12:35:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-12 08:49:53 +0200 |
commit | e1d3ecb498c9b28731392a6cb8557fe73fcfb5e9 (patch) | |
tree | ad38427e73be092e7ee33c98e1c24874e3230a0e /svl | |
parent | 97930797d2346ceaded866fd7c1dd4c3c9916015 (diff) |
loplugin:simplifyconstruct in stoc..svl
Change-Id: I81d465d66a979e9a1e092e5d23ed339840d1fb2d
Reviewed-on: https://gerrit.libreoffice.org/60315
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/fsstor/fsstorage.cxx | 2 | ||||
-rw-r--r-- | svl/source/fsstor/oinputstreamcontainer.cxx | 1 | ||||
-rw-r--r-- | svl/source/fsstor/ostreamcontainer.cxx | 1 | ||||
-rw-r--r-- | svl/source/inc/poolio.hxx | 1 | ||||
-rw-r--r-- | svl/source/items/aeitem.cxx | 3 | ||||
-rw-r--r-- | svl/source/items/itemset.cxx | 1 | ||||
-rw-r--r-- | svl/source/items/stylepool.cxx | 1 | ||||
-rw-r--r-- | svl/source/misc/strmadpt.cxx | 1 | ||||
-rw-r--r-- | svl/source/numbers/supservs.cxx | 3 | ||||
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 8 | ||||
-rw-r--r-- | svl/source/passwordcontainer/passwordcontainer.cxx | 3 | ||||
-rw-r--r-- | svl/unx/source/svdde/ddedummy.cxx | 1 |
12 files changed, 3 insertions, 23 deletions
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx index f01d7c583b9e..c05c788b1bd8 100644 --- a/svl/source/fsstor/fsstorage.cxx +++ b/svl/source/fsstor/fsstorage.cxx @@ -82,8 +82,6 @@ struct FSStorage_Impl : m_aURL( aContent.getURL() ) , m_aContent( aContent ) , m_nMode( nMode ) - , m_pListenersContainer( nullptr ) - , m_pTypeCollection( nullptr ) , m_xContext( xContext ) { OSL_ENSURE( !m_aURL.isEmpty(), "The URL must not be empty" ); diff --git a/svl/source/fsstor/oinputstreamcontainer.cxx b/svl/source/fsstor/oinputstreamcontainer.cxx index c7ff2e015e1c..9b9899992119 100644 --- a/svl/source/fsstor/oinputstreamcontainer.cxx +++ b/svl/source/fsstor/oinputstreamcontainer.cxx @@ -29,7 +29,6 @@ OFSInputStreamContainer::OFSInputStreamContainer( const uno::Reference< io::XInp , m_xSeekable( xStream, uno::UNO_QUERY ) , m_bSeekable( false ) , m_bDisposed( false ) -, m_pListenersContainer( nullptr ) { m_bSeekable = m_xSeekable.is(); } diff --git a/svl/source/fsstor/ostreamcontainer.cxx b/svl/source/fsstor/ostreamcontainer.cxx index d4c97b0b6f94..a26077b3c1f4 100644 --- a/svl/source/fsstor/ostreamcontainer.cxx +++ b/svl/source/fsstor/ostreamcontainer.cxx @@ -28,7 +28,6 @@ OFSStreamContainer::OFSStreamContainer( const uno::Reference < io::XStream >& xS : m_bDisposed( false ) , m_bInputClosed( false ) , m_bOutputClosed( false ) -, m_pListenersContainer( nullptr ) , m_pTypeCollection( nullptr ) { try diff --git a/svl/source/inc/poolio.hxx b/svl/source/inc/poolio.hxx index a31897e6575d..6db0ee975080 100644 --- a/svl/source/inc/poolio.hxx +++ b/svl/source/inc/poolio.hxx @@ -85,7 +85,6 @@ struct SfxItemPool_Impl , mpStaticDefaults(nullptr) , mpMaster(pMaster) , mpSecondary(nullptr) - , mpPoolRanges(nullptr) , mnStart(nStart) , mnEnd(nEnd) , eDefMetric(MapUnit::MapCM) diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx index 39fa0cda74c6..8c4dc2e04faf 100644 --- a/svl/source/items/aeitem.cxx +++ b/svl/source/items/aeitem.cxx @@ -33,8 +33,7 @@ class SfxAllEnumValueArr : public std::vector<SfxAllEnumValue_Impl> {}; SfxAllEnumItem::SfxAllEnumItem(sal_uInt16 which, sal_uInt16 nVal): - SfxAllEnumItem_Base(which, nVal), - pValues( nullptr ) + SfxAllEnumItem_Base(which, nVal) { InsertValue( nVal ); } diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 0be3d7105525..ba5df7559def 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -171,7 +171,6 @@ SfxItemSet::SfxItemSet( SfxItemSet::SfxItemSet( SfxItemPool& rPool, const sal_uInt16* pWhichPairTable ) : m_pPool(&rPool) , m_pParent(nullptr) - , m_pItems(nullptr) , m_pWhichRanges(nullptr) , m_nCount(0) { diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx index 6192adee6650..cdda2f9de0e3 100644 --- a/svl/source/items/stylepool.cxx +++ b/svl/source/items/stylepool.cxx @@ -47,7 +47,6 @@ namespace { Node() // root node Ctor : mChildren(), maItemSet(), - mpItem( nullptr ), mpUpper( nullptr ), mbIsItemIgnorable( false ) {} diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx index 1e9abecd1fb5..101984e0e068 100644 --- a/svl/source/misc/strmadpt.cxx +++ b/svl/source/misc/strmadpt.cxx @@ -319,7 +319,6 @@ void SvInputStream::SetSize(sal_uInt64) SvInputStream::SvInputStream( css::uno::Reference< css::io::XInputStream > const & rTheStream): m_xStream(rTheStream), - m_pPipe(nullptr), m_nSeekedFrom(STREAM_SEEK_TO_END) { SetBufferSize(0); diff --git a/svl/source/numbers/supservs.cxx b/svl/source/numbers/supservs.cxx index 9a287a75c148..8fc748c6d4a1 100644 --- a/svl/source/numbers/supservs.cxx +++ b/svl/source/numbers/supservs.cxx @@ -39,8 +39,7 @@ using namespace ::utl; SvNumberFormatsSupplierServiceObject::SvNumberFormatsSupplierServiceObject(const css::uno::Reference< css::uno::XComponentContext >& _rxORB) - :m_pOwnFormatter(nullptr) - ,m_xORB(_rxORB) + :m_xORB(_rxORB) { } diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index be310b5cf390..eb77b6c6ce66 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -70,14 +70,6 @@ static const sal_Int16 kDefaultEra = 1; // Gregorian CE, positive year ImpSvNumberInputScan::ImpSvNumberInputScan( SvNumberFormatter* pFormatterP ) : - pUpperMonthText( nullptr ), - pUpperAbbrevMonthText( nullptr ), - pUpperGenitiveMonthText( nullptr ), - pUpperGenitiveAbbrevMonthText( nullptr ), - pUpperPartitiveMonthText( nullptr ), - pUpperPartitiveAbbrevMonthText( nullptr ), - pUpperDayText( nullptr ), - pUpperAbbrevDayText( nullptr ), bTextInitialized( false ), bScanGenitiveMonths( false ), bScanPartitiveMonths( false ), diff --git a/svl/source/passwordcontainer/passwordcontainer.cxx b/svl/source/passwordcontainer/passwordcontainer.cxx index 6c276598f4e7..eb52bc98e520 100644 --- a/svl/source/passwordcontainer/passwordcontainer.cxx +++ b/svl/source/passwordcontainer/passwordcontainer.cxx @@ -369,8 +369,7 @@ void StorageItem::ImplCommit() } -PasswordContainer::PasswordContainer( const Reference<XMultiServiceFactory>& xServiceFactory ): - m_pStorageFile( nullptr ) +PasswordContainer::PasswordContainer( const Reference<XMultiServiceFactory>& xServiceFactory ) { // m_pStorageFile->Notify() can be called ::osl::MutexGuard aGuard( mMutex ); diff --git a/svl/unx/source/svdde/ddedummy.cxx b/svl/unx/source/svdde/ddedummy.cxx index e934b865a857..c505433a1e98 100644 --- a/svl/unx/source/svdde/ddedummy.cxx +++ b/svl/unx/source/svdde/ddedummy.cxx @@ -91,7 +91,6 @@ long DdeConnection::GetError() DdeConnection::DdeConnection( const OUString&, const OUString& ) : pService(nullptr) , pTopic(nullptr) - , pImp(nullptr) { } |