diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-06 16:49:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-07 07:20:24 +0200 |
commit | 6343754e310a589cb49e2a1da0cd68472571179d (patch) | |
tree | a0915b9679f3422a6abda3fb2d6917df4edb30f5 /sot | |
parent | dea885f80a80c6a5839ee5dbf8521487186a9522 (diff) |
cppcheck:noExplicitConstructor
Change-Id: I2717d3d120df8af5b7e9af8d147a57b9f5b5ecbe
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgavl.hxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/stgdir.hxx | 6 | ||||
-rw-r--r-- | sot/source/sdstor/stgio.cxx | 3 | ||||
-rw-r--r-- | sot/source/sdstor/stgstrms.hxx | 8 | ||||
-rw-r--r-- | sot/source/unoolestorage/xolesimplestorage.hxx | 2 |
5 files changed, 10 insertions, 11 deletions
diff --git a/sot/source/sdstor/stgavl.hxx b/sot/source/sdstor/stgavl.hxx index ad3d44d870ac..81109619ac42 100644 --- a/sot/source/sdstor/stgavl.hxx +++ b/sot/source/sdstor/stgavl.hxx @@ -56,7 +56,7 @@ class StgAvlIterator { short nCur; // current element StgAvlNode* Find( short ); public: - StgAvlIterator( StgAvlNode* ); + explicit StgAvlIterator( StgAvlNode* ); StgAvlNode* First(); StgAvlNode* Next(); }; diff --git a/sot/source/sdstor/stgdir.hxx b/sot/source/sdstor/stgdir.hxx index d810b6d9397f..0f945b36b5fe 100644 --- a/sot/source/sdstor/stgdir.hxx +++ b/sot/source/sdstor/stgdir.hxx @@ -64,7 +64,7 @@ public: bool bInvalid; // true: invalid entry StgDirEntry(const void* pBuffer, sal_uInt32 nBufferLen, sal_uInt64 nUnderlyingStreamSize, bool * pbOk); - StgDirEntry( const StgEntry& ); + explicit StgDirEntry( const StgEntry& ); virtual ~StgDirEntry(); void Invalidate( bool=false ); // invalidate all open entries @@ -95,7 +95,7 @@ class StgDirStrm : public StgDataStrm short nEntries; // entries per page void SetupEntry( sal_Int32, StgDirEntry* ); public: - StgDirStrm( StgIo& ); + explicit StgDirStrm( StgIo& ); virtual ~StgDirStrm(); virtual bool SetSize( sal_Int32 ) SAL_OVERRIDE; // change the size bool Store(); @@ -108,7 +108,7 @@ public: class StgIterator : public StgAvlIterator { public: - StgIterator( StgDirEntry& rStg ) : StgAvlIterator( rStg.pDown ) {} + explicit StgIterator( StgDirEntry& rStg ) : StgAvlIterator( rStg.pDown ) {} StgDirEntry* First() { return static_cast<StgDirEntry*>( StgAvlIterator::First() ); } StgDirEntry* Next() { return static_cast<StgDirEntry*>( StgAvlIterator::Next() ); } }; diff --git a/sot/source/sdstor/stgio.cxx b/sot/source/sdstor/stgio.cxx index 11f391efe0fb..74817eb61bfa 100644 --- a/sot/source/sdstor/stgio.cxx +++ b/sot/source/sdstor/stgio.cxx @@ -234,8 +234,7 @@ class Validator sal_uLong MarkAll( StgDirEntry *pEntry ); public: - - Validator( StgIo &rIo ); + explicit Validator( StgIo &rIo ); bool IsError() { return nError != 0; } }; diff --git a/sot/source/sdstor/stgstrms.hxx b/sot/source/sdstor/stgstrms.hxx index ba51547fb359..33ff1935f957 100644 --- a/sot/source/sdstor/stgstrms.hxx +++ b/sot/source/sdstor/stgstrms.hxx @@ -73,7 +73,7 @@ protected: std::vector<sal_Int32> m_aPagesCache; void scanBuildPageChainCache(sal_Int32 *pOptionalCalcSize = NULL); bool Copy( sal_Int32 nFrom, sal_Int32 nBytes ); - StgStrm( StgIo& ); + explicit StgStrm( StgIo& ); public: virtual ~StgStrm(); StgIo& GetIo() { return rIo; } @@ -99,7 +99,7 @@ class StgFATStrm : public StgStrm { // the master FAT stream virtual bool Pos2Page( sal_Int32 nBytePos ) SAL_OVERRIDE; bool SetPage( short, sal_Int32 ); public: - StgFATStrm( StgIo& ); + explicit StgFATStrm( StgIo& ); virtual ~StgFATStrm() {} using StgStrm::GetPage; sal_Int32 GetPage( short, bool, sal_uInt16 *pnMasterAlloc = 0); @@ -151,8 +151,8 @@ class StgTmpStrm : public SvMemoryStream virtual void FlushData() SAL_OVERRIDE; public: - StgTmpStrm( sal_uLong=16 ); - virtual ~StgTmpStrm(); + explicit StgTmpStrm( sal_uLong=16 ); + virtual ~StgTmpStrm(); bool Copy( StgTmpStrm& ); virtual void SetSize( sal_uInt64 ) SAL_OVERRIDE; sal_uLong GetSize() const; diff --git a/sot/source/unoolestorage/xolesimplestorage.hxx b/sot/source/unoolestorage/xolesimplestorage.hxx index 423bb3ecf11f..818de7548739 100644 --- a/sot/source/unoolestorage/xolesimplestorage.hxx +++ b/sot/source/unoolestorage/xolesimplestorage.hxx @@ -67,7 +67,7 @@ class OLESimpleStorage : public ::cppu::WeakImplHelper3 public: - OLESimpleStorage( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xFactory ); + explicit OLESimpleStorage( ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xFactory ); virtual ~OLESimpleStorage(); |