diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-08-12 09:32:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-08-12 09:38:25 +0100 |
commit | e008aebbcf366a64d5870ad3a5df39cac429b81c (patch) | |
tree | 96f18c7ae2247532b36a464548e440822f966f34 | |
parent | aca3f5ef4feae793afa765a56ea0cfc797eb4076 (diff) |
cppcheck: noCopyConstructor
Change-Id: Ice596f9d05703c944d12d2c00e2364ca6950d39c
-rw-r--r-- | svtools/source/contnr/imivctl.hxx | 14 | ||||
-rw-r--r-- | svtools/source/dialogs/addresstemplate.cxx | 3 | ||||
-rw-r--r-- | svtools/source/graphic/grfcache.cxx | 4 | ||||
-rw-r--r-- | svx/source/engine3d/view3d.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdfmtf.hxx | 7 | ||||
-rw-r--r-- | svx/source/table/tablertfimporter.cxx | 4 |
6 files changed, 28 insertions, 8 deletions
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx index bb5575f6231a..d806740c53b1 100644 --- a/svtools/source/contnr/imivctl.hxx +++ b/svtools/source/contnr/imivctl.hxx @@ -316,6 +316,10 @@ class SvxIconChoiceCtrl_Impl bool IsMnemonicChar( sal_Unicode cChar, sal_uLong& rPos ) const; + // Copy assignment is forbidden and not implemented. + SvxIconChoiceCtrl_Impl (const SvxIconChoiceCtrl_Impl &) SAL_DELETED_FUNCTION; + SvxIconChoiceCtrl_Impl & operator= (const SvxIconChoiceCtrl_Impl &) SAL_DELETED_FUNCTION; + public: long nGridDX; @@ -512,14 +516,12 @@ public: void CallEventListeners( sal_uLong nEvent, void* pData = NULL ); - inline ::svt::IAccessibleFactory& GetAccessibleFactory() - { - return aAccFactory.getFactory(); - } + ::svt::IAccessibleFactory& GetAccessibleFactory() + { + return aAccFactory.getFactory(); + } }; - - typedef std::map<sal_uInt16, SvxIconChoiceCtrlEntryPtrVec> IconChoiceMap; class IcnCursor_Impl diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx index 368ba4025577..01b730bf7d31 100644 --- a/svtools/source/dialogs/addresstemplate.cxx +++ b/svtools/source/dialogs/addresstemplate.cxx @@ -500,6 +500,9 @@ void AssignmentPersistentData::ImplCommit() delete pConfigData; } + // Copy assignment is forbidden and not implemented. + AddressBookSourceDialogData (const AddressBookSourceDialogData &) SAL_DELETED_FUNCTION; + AddressBookSourceDialogData & operator= (const AddressBookSourceDialogData &) SAL_DELETED_FUNCTION; }; diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx index 3c0dbd3c9016..d34c5b7ba6fd 100644 --- a/svtools/source/graphic/grfcache.cxx +++ b/svtools/source/graphic/grfcache.cxx @@ -392,6 +392,10 @@ private: static bool IsCacheableAsBitmap( const GDIMetaFile& rMtf, OutputDevice* pOut, const Size& rSz ); + // Copy assignment is forbidden and not implemented. + GraphicDisplayCacheEntry (const GraphicDisplayCacheEntry &) SAL_DELETED_FUNCTION; + GraphicDisplayCacheEntry & operator= (const GraphicDisplayCacheEntry &) SAL_DELETED_FUNCTION; + public: static sal_uLong GetNeededSize( OutputDevice* pOut, const Point& rPt, const Size& rSz, diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx index 32417339cd74..14c5e749c1c6 100644 --- a/svx/source/engine3d/view3d.cxx +++ b/svx/source/engine3d/view3d.cxx @@ -92,6 +92,10 @@ class Impl3DMirrorConstructOverlay // the overlay geometry from selected objects drawinglayer::primitive2d::Primitive2DSequence maFullOverlay; + // Copy assignment is forbidden and not implemented. + Impl3DMirrorConstructOverlay (const Impl3DMirrorConstructOverlay &) SAL_DELETED_FUNCTION; + Impl3DMirrorConstructOverlay & operator= (const Impl3DMirrorConstructOverlay &) SAL_DELETED_FUNCTION; + public: explicit Impl3DMirrorConstructOverlay(const E3dView& rView); ~Impl3DMirrorConstructOverlay(); diff --git a/svx/source/svdraw/svdfmtf.hxx b/svx/source/svdraw/svdfmtf.hxx index c7c32f4619e2..c290ceb978fc 100644 --- a/svx/source/svdraw/svdfmtf.hxx +++ b/svx/source/svdraw/svdfmtf.hxx @@ -39,8 +39,6 @@ class SvdProgressInfo; // Helper Class ImpSdrGDIMetaFileImport - - class ImpSdrGDIMetaFileImport { protected: @@ -154,6 +152,11 @@ protected: void DoLoopActions(GDIMetaFile& rMtf, SvdProgressInfo* pProgrInfo, sal_uInt32* pActionsToReport); +private: + // Copy assignment is forbidden and not implemented. + ImpSdrGDIMetaFileImport (const ImpSdrGDIMetaFileImport &) SAL_DELETED_FUNCTION; + ImpSdrGDIMetaFileImport & operator= (const ImpSdrGDIMetaFileImport &) SAL_DELETED_FUNCTION; + public: ImpSdrGDIMetaFileImport( SdrModel& rModel, diff --git a/svx/source/table/tablertfimporter.cxx b/svx/source/table/tablertfimporter.cxx index 3740bc756bad..3a4d6dc6ebeb 100644 --- a/svx/source/table/tablertfimporter.cxx +++ b/svx/source/table/tablertfimporter.cxx @@ -120,6 +120,10 @@ private: RTFCellDefault* mpDefMerge; Reference< XTable > mxTable; + + // Copy assignment is forbidden and not implemented. + SdrTableRTFParser (const SdrTableRTFParser &) SAL_DELETED_FUNCTION; + SdrTableRTFParser & operator= (const SdrTableRTFParser &) SAL_DELETED_FUNCTION; }; SdrTableRTFParser::SdrTableRTFParser( SdrTableObj& rTableObj ) |