summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-12 12:11:18 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-12 13:48:21 +0100
commitb472ba671ab4e388786a109ac61823e0f7290cd4 (patch)
tree43368d667aa869270571db9df8011e44924015c9 /svl
parent4518430734b276271e130e6198d40a996794cb62 (diff)
cppcheck: noCopyConstructor
Change-Id: I62da241f237b17fc192dd586bcd35b5bd6ea284a
Diffstat (limited to 'svl')
-rw-r--r--svl/source/fsstor/fsstorage.cxx7
-rw-r--r--svl/source/numbers/zforfind.hxx4
-rw-r--r--svl/source/undo/undo.cxx5
3 files changed, 12 insertions, 4 deletions
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
{