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 /svtools | |
parent | aca3f5ef4feae793afa765a56ea0cfc797eb4076 (diff) |
cppcheck: noCopyConstructor
Change-Id: Ice596f9d05703c944d12d2c00e2364ca6950d39c
Diffstat (limited to 'svtools')
-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 |
3 files changed, 15 insertions, 6 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, |