From b472ba671ab4e388786a109ac61823e0f7290cd4 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 12 Aug 2015 12:11:18 +0100 Subject: cppcheck: noCopyConstructor Change-Id: I62da241f237b17fc192dd586bcd35b5bd6ea284a --- svl/source/fsstor/fsstorage.cxx | 7 ++++--- svl/source/numbers/zforfind.hxx | 4 ++++ svl/source/undo/undo.cxx | 5 ++++- 3 files changed, 12 insertions(+), 4 deletions(-) (limited to 'svl/source') diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx index 4caaf7b7a28c..c463f9610c7f 100644 --- a/svl/source/fsstor/fsstorage.cxx +++ b/svl/source/fsstor/fsstorage.cxx @@ -83,8 +83,6 @@ bool isLocalFile_Impl( const OUString& aURL ) return ( !aSystemPath.isEmpty() ); } - - struct FSStorage_Impl { OUString m_aURL; @@ -110,8 +108,11 @@ struct FSStorage_Impl } ~FSStorage_Impl(); -}; + // Copy assignment is forbidden and not implemented. + FSStorage_Impl (const FSStorage_Impl &) SAL_DELETED_FUNCTION; + FSStorage_Impl & operator= (const FSStorage_Impl &) SAL_DELETED_FUNCTION; +}; FSStorage_Impl::~FSStorage_Impl() { diff --git a/svl/source/numbers/zforfind.hxx b/svl/source/numbers/zforfind.hxx index 40db6498050d..4dab5cb27d2a 100644 --- a/svl/source/numbers/zforfind.hxx +++ b/svl/source/numbers/zforfind.hxx @@ -184,6 +184,10 @@ private: */ sal_uInt16 nDatePatternNumbers; + // Copy assignment is forbidden and not implemented. + ImpSvNumberInputScan (const ImpSvNumberInputScan &) SAL_DELETED_FUNCTION; + ImpSvNumberInputScan & operator= (const ImpSvNumberInputScan &) SAL_DELETED_FUNCTION; + void Reset(); // Reset all variables before start of analysis void InitText(); // Init of months and days of week diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 045586dca21e..f0f5df9c6b8b 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -257,8 +257,11 @@ struct SVL_DLLPRIVATE SfxUndoManager_Data { delete pUndoArray; } -}; + // Copy assignment is forbidden and not implemented. + SfxUndoManager_Data (const SfxUndoManager_Data &) SAL_DELETED_FUNCTION; + SfxUndoManager_Data & operator= (const SfxUndoManager_Data &) SAL_DELETED_FUNCTION; +}; namespace svl { namespace undo { namespace impl { -- cgit