cppcheck: noCopyConstructor

Change-Id: Ice596f9d05703c944d12d2c00e2364ca6950d39c
This commit is contained in:
Caolán McNamara
2015-08-12 09:32:23 +01:00
parent aca3f5ef4f
commit e008aebbcf
6 changed files with 28 additions and 8 deletions

View File

@@ -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

View File

@@ -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;
};

View File

@@ -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,

View File

@@ -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();

View File

@@ -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,

View File

@@ -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 )