diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-02-07 12:31:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-02-07 12:36:03 +0100 |
commit | 6e26cc140bf0254a88a1d4c6e82cbaee39ced418 (patch) | |
tree | 4c9a62c32f7b9df3618ab502a08d1a0829d81c03 /include | |
parent | f862290c91e66b859504e6c271309f73fa762a0d (diff) |
loplugin:deletedspecial
Change-Id: I1ffc6af694367f0ff70b7598c093203f1f68882c
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/AccessibleControlShape.hxx | 11 | ||||
-rw-r--r-- | include/svx/AccessibleGraphicShape.hxx | 11 | ||||
-rw-r--r-- | include/svx/AccessibleOLEShape.hxx | 11 | ||||
-rw-r--r-- | include/svx/AccessibleShape.hxx | 10 | ||||
-rw-r--r-- | include/svx/AccessibleShapeInfo.hxx | 4 | ||||
-rw-r--r-- | include/svx/ChildrenManager.hxx | 6 | ||||
-rw-r--r-- | include/svx/EnhancedCustomShapeFunctionParser.hxx | 5 | ||||
-rw-r--r-- | include/svx/fmmodel.hxx | 4 | ||||
-rw-r--r-- | include/svx/rulritem.hxx | 8 | ||||
-rw-r--r-- | include/svx/sdr/table/tablecontroller.hxx | 4 | ||||
-rw-r--r-- | include/svx/sdrmasterpagedescriptor.hxx | 3 | ||||
-rw-r--r-- | include/svx/sdrpagewindow.hxx | 4 | ||||
-rw-r--r-- | include/svx/svdmodel.hxx | 7 | ||||
-rw-r--r-- | include/svx/svdobj.hxx | 8 | ||||
-rw-r--r-- | include/svx/svdovirt.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdpage.hxx | 7 |
16 files changed, 35 insertions, 70 deletions
diff --git a/include/svx/AccessibleControlShape.hxx b/include/svx/AccessibleControlShape.hxx index 55cd22d7d5f0..e19cf1499101 100644 --- a/include/svx/AccessibleControlShape.hxx +++ b/include/svx/AccessibleControlShape.hxx @@ -193,16 +193,9 @@ private: bool m_bWaitingForControl : 1; // if we are created before our control exists, we need to wait for it to appear ... private: - /** Don't use the default constructor. Use the public constructor that - takes the original shape and the parent as arguments instead. - */ - AccessibleControlShape( ); - - /// Don't use the constructor. not implemented. - AccessibleControlShape(const AccessibleControlShape&); + AccessibleControlShape(const AccessibleControlShape&) SAL_DELETED_FUNCTION; - /// Don't use the assignment operator. not implemented. - AccessibleControlShape& operator= (const AccessibleControlShape&); + AccessibleControlShape& operator= (const AccessibleControlShape&) SAL_DELETED_FUNCTION; }; } // end of namespace accessibility diff --git a/include/svx/AccessibleGraphicShape.hxx b/include/svx/AccessibleGraphicShape.hxx index 56f48b6404c4..3e8d46fee679 100644 --- a/include/svx/AccessibleGraphicShape.hxx +++ b/include/svx/AccessibleGraphicShape.hxx @@ -99,16 +99,9 @@ protected: throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; private: - /** Don't use the default constructor. Use the public constructor that - takes the original shape and the parent as arguments instead. - */ - SVX_DLLPRIVATE AccessibleGraphicShape (void); - - /// Don't use the constructor. Not yet implemented. - SVX_DLLPRIVATE AccessibleGraphicShape (const AccessibleGraphicShape&); + AccessibleGraphicShape (const AccessibleGraphicShape&) SAL_DELETED_FUNCTION; - /// Don't use the assignment operator. Not yet implemented. - SVX_DLLPRIVATE AccessibleGraphicShape& operator= (const AccessibleGraphicShape&); + AccessibleGraphicShape& operator= (const AccessibleGraphicShape&) SAL_DELETED_FUNCTION; }; } // end of namespace accessibility diff --git a/include/svx/AccessibleOLEShape.hxx b/include/svx/AccessibleOLEShape.hxx index 945144af6620..943639851b8f 100644 --- a/include/svx/AccessibleOLEShape.hxx +++ b/include/svx/AccessibleOLEShape.hxx @@ -105,16 +105,9 @@ protected: throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; private: - /** Don't use the default constructor. Use the public constructor that - takes the original shape and the parent as arguments instead. - */ - SVX_DLLPRIVATE AccessibleOLEShape (void); + AccessibleOLEShape (const AccessibleOLEShape&) SAL_DELETED_FUNCTION; - /// Don't use the constructor. Not yet implemented. - SVX_DLLPRIVATE AccessibleOLEShape (const AccessibleOLEShape&); - - /// Don't use the assignment operator. Not yet implemented. - SVX_DLLPRIVATE AccessibleOLEShape& operator= (const AccessibleOLEShape&); + AccessibleOLEShape& operator= (const AccessibleOLEShape&) SAL_DELETED_FUNCTION; }; } // end of namespace accessibility diff --git a/include/svx/AccessibleShape.hxx b/include/svx/AccessibleShape.hxx index 93188dad31a0..e7a6442b6537 100644 --- a/include/svx/AccessibleShape.hxx +++ b/include/svx/AccessibleShape.hxx @@ -459,14 +459,8 @@ protected: void UpdateStates (void); private: - /** Don't use the default constructor. Use the public constructor that - takes the original shape and the parent as arguments instead. - */ - SVX_DLLPRIVATE explicit AccessibleShape (void); - /// Don't use the copy constructor. Is there any use for it? - SVX_DLLPRIVATE explicit AccessibleShape (const AccessibleShape&); - /// Don't use the assignment operator. Do we need this? - SVX_DLLPRIVATE AccessibleShape& operator= (const AccessibleShape&); + AccessibleShape (const AccessibleShape&) SAL_DELETED_FUNCTION; + AccessibleShape& operator= (const AccessibleShape&) SAL_DELETED_FUNCTION; //Old accessible name OUString aAccName; diff --git a/include/svx/AccessibleShapeInfo.hxx b/include/svx/AccessibleShapeInfo.hxx index 6abb2b5b1726..d8591fcb1470 100644 --- a/include/svx/AccessibleShapeInfo.hxx +++ b/include/svx/AccessibleShapeInfo.hxx @@ -91,9 +91,7 @@ public: AccessibleShapeInfo (const AccessibleShapeInfo&); private: - // Don't use these three methods. - SVX_DLLPRIVATE explicit AccessibleShapeInfo (void); - SVX_DLLPRIVATE AccessibleShapeInfo& operator= (const AccessibleShapeInfo&); + AccessibleShapeInfo& operator= (const AccessibleShapeInfo&) SAL_DELETED_FUNCTION; }; } // end of namespace accessibility diff --git a/include/svx/ChildrenManager.hxx b/include/svx/ChildrenManager.hxx index 74a9caa3c9b0..17bc1a36ab61 100644 --- a/include/svx/ChildrenManager.hxx +++ b/include/svx/ChildrenManager.hxx @@ -197,10 +197,8 @@ protected: ChildrenManagerImpl* mpImpl; private: - // Don't use the copy constructor or the assignment operator. They are - // not implemented (and are not intended to be). - SVX_DLLPRIVATE ChildrenManager (const ChildrenManager&); - SVX_DLLPRIVATE ChildrenManager& operator= (const ChildrenManager&); + ChildrenManager (const ChildrenManager&) SAL_DELETED_FUNCTION; + ChildrenManager& operator= (const ChildrenManager&) SAL_DELETED_FUNCTION; }; } // end of namespace accessibility diff --git a/include/svx/EnhancedCustomShapeFunctionParser.hxx b/include/svx/EnhancedCustomShapeFunctionParser.hxx index 0f2c87a3bd32..164ca6fd13f5 100644 --- a/include/svx/EnhancedCustomShapeFunctionParser.hxx +++ b/include/svx/EnhancedCustomShapeFunctionParser.hxx @@ -195,9 +195,8 @@ private: // supposed to be a singleton FunctionParser(); - // default: disabled copy/assignment - FunctionParser(const FunctionParser&); - FunctionParser& operator=( const FunctionParser& ); + FunctionParser(const FunctionParser&) SAL_DELETED_FUNCTION; + FunctionParser& operator=( const FunctionParser& ) SAL_DELETED_FUNCTION; }; } diff --git a/include/svx/fmmodel.hxx b/include/svx/fmmodel.hxx index 128579b4fc7e..03f65dfe399b 100644 --- a/include/svx/fmmodel.hxx +++ b/include/svx/fmmodel.hxx @@ -42,8 +42,8 @@ private: bool m_bOpenInDesignMode : 1; bool m_bAutoControlFocus : 1; - SVX_DLLPRIVATE FmFormModel( const FmFormModel& ); // never implemented - SVX_DLLPRIVATE void operator=(const FmFormModel& rSrcModel); // never implemented + FmFormModel( const FmFormModel& ) SAL_DELETED_FUNCTION; + void operator=(const FmFormModel& rSrcModel) SAL_DELETED_FUNCTION; public: TYPEINFO_OVERRIDE(); diff --git a/include/svx/rulritem.hxx b/include/svx/rulritem.hxx index af5907a293cd..2204de11acef 100644 --- a/include/svx/rulritem.hxx +++ b/include/svx/rulritem.hxx @@ -43,7 +43,7 @@ class SVX_DLLPUBLIC SvxLongLRSpaceItem : public SfxPoolItem virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; private: - SVX_DLLPRIVATE const SvxLongLRSpaceItem& operator=(const SvxLongLRSpaceItem &); // n.i. + const SvxLongLRSpaceItem& operator=(const SvxLongLRSpaceItem &) SAL_DELETED_FUNCTION; public: TYPEINFO_OVERRIDE(); @@ -76,7 +76,7 @@ class SVX_DLLPUBLIC SvxLongULSpaceItem : public SfxPoolItem virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; private: - SVX_DLLPRIVATE const SvxLongULSpaceItem& operator=(const SvxLongULSpaceItem &); // n.i. + const SvxLongULSpaceItem& operator=(const SvxLongULSpaceItem &) SAL_DELETED_FUNCTION; public: TYPEINFO_OVERRIDE(); @@ -108,7 +108,7 @@ protected: virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE; private: - SVX_DLLPRIVATE const SvxPagePosSizeItem& operator=(const SvxPagePosSizeItem &); // n.i. + const SvxPagePosSizeItem& operator=(const SvxPagePosSizeItem &) SAL_DELETED_FUNCTION; public: TYPEINFO_OVERRIDE(); SvxPagePosSizeItem(const Point &rPos, long lWidth, long lHeight); @@ -234,7 +234,7 @@ protected: virtual bool PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE; private: - SVX_DLLPRIVATE const SvxObjectItem &operator=(const SvxObjectItem &); // n.i. + const SvxObjectItem &operator=(const SvxObjectItem &) SAL_DELETED_FUNCTION; public: TYPEINFO_OVERRIDE(); diff --git a/include/svx/sdr/table/tablecontroller.hxx b/include/svx/sdr/table/tablecontroller.hxx index 11824be41b17..ca5f024f3134 100644 --- a/include/svx/sdr/table/tablecontroller.hxx +++ b/include/svx/sdr/table/tablecontroller.hxx @@ -113,8 +113,8 @@ public: //declare event notification method void NotifySelection( const CellPos& firstPos, const CellPos& lastPos, const CellPos& newPos ); private: - SvxTableController(SvxTableController &); // not defined - void operator =(SvxTableController &); // not defined + SvxTableController(SvxTableController &) SAL_DELETED_FUNCTION; + void operator =(SvxTableController &) SAL_DELETED_FUNCTION; // internals SVX_DLLPRIVATE void ApplyBorderAttr( const SfxItemSet& rAttr ); diff --git a/include/svx/sdrmasterpagedescriptor.hxx b/include/svx/sdrmasterpagedescriptor.hxx index 7da54df7971d..92da6c41d8c5 100644 --- a/include/svx/sdrmasterpagedescriptor.hxx +++ b/include/svx/sdrmasterpagedescriptor.hxx @@ -51,8 +51,7 @@ namespace sdr // ViewContact part sdr::contact::ViewContact* mpViewContact; - // assignment operator defined, but not implemented - void operator=(const MasterPageDescriptor& rCandidate); + void operator=(const MasterPageDescriptor& rCandidate) SAL_DELETED_FUNCTION; protected: sdr::contact::ViewContact* CreateObjectSpecificViewContact(); diff --git a/include/svx/sdrpagewindow.hxx b/include/svx/sdrpagewindow.hxx index e7156eb91a45..05e1aa6f0d04 100644 --- a/include/svx/sdrpagewindow.hxx +++ b/include/svx/sdrpagewindow.hxx @@ -51,8 +51,8 @@ class SVX_DLLPUBLIC SdrPageWindow Impl* mpImpl; - SdrPageWindow( const SdrPageWindow& ); // disabled - SdrPageWindow& operator= ( const SdrPageWindow& ); // disabled + SdrPageWindow( const SdrPageWindow& ) SAL_DELETED_FUNCTION; + SdrPageWindow& operator= ( const SdrPageWindow& ) SAL_DELETED_FUNCTION; public: SdrPageWindow(SdrPageView& rNewPageView, SdrPaintWindow& rPaintWindow); diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx index d71434d4d3aa..b3fa3c4b43a0 100644 --- a/include/svx/svdmodel.hxx +++ b/include/svx/svdmodel.hxx @@ -259,10 +259,9 @@ protected: virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > createUnoModel(); private: - // not implemented: - SVX_DLLPRIVATE SdrModel(const SdrModel& rSrcModel); - SVX_DLLPRIVATE void operator=(const SdrModel& rSrcModel); - SVX_DLLPRIVATE bool operator==(const SdrModel& rCmpModel) const; + SdrModel(const SdrModel& rSrcModel) SAL_DELETED_FUNCTION; + void operator=(const SdrModel& rSrcModel) SAL_DELETED_FUNCTION; + bool operator==(const SdrModel& rCmpModel) const SAL_DELETED_FUNCTION; SVX_DLLPRIVATE void ImpPostUndoAction(SdrUndoAction* pUndo); SVX_DLLPRIVATE void ImpSetUIUnit(); SVX_DLLPRIVATE void ImpSetOutlinerDefaults( SdrOutliner* pOutliner, bool bInit = false ); diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index ab94f3150d03..1d83a024e055 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -194,9 +194,9 @@ protected: sal_uInt16 nVersion; private: - SVX_DLLPRIVATE void operator=(const SdrObjUserData& rData); // not implemented - SVX_DLLPRIVATE bool operator==(const SdrObjUserData& rData) const; // not implemented - SVX_DLLPRIVATE bool operator!=(const SdrObjUserData& rData) const; // not implemented + void operator=(const SdrObjUserData& rData) SAL_DELETED_FUNCTION; + bool operator==(const SdrObjUserData& rData) const SAL_DELETED_FUNCTION; + bool operator!=(const SdrObjUserData& rData) const SAL_DELETED_FUNCTION; public: TYPEINFO(); @@ -273,7 +273,7 @@ private: struct Impl; Impl* mpImpl; - SdrObject( const SdrObject& ); // disabled + SdrObject( const SdrObject& ) SAL_DELETED_FUNCTION; public: void AddObjectUser(sdr::ObjectUser& rNewUser); diff --git a/include/svx/svdovirt.hxx b/include/svx/svdovirt.hxx index ce4c31828016..6140c386492c 100644 --- a/include/svx/svdovirt.hxx +++ b/include/svx/svdovirt.hxx @@ -35,7 +35,7 @@ class SVX_DLLPUBLIC SdrVirtObj : public SdrObject { - SdrVirtObj( const SdrVirtObj& ); // disabled + SdrVirtObj( const SdrVirtObj& ) SAL_DELETED_FUNCTION; public: virtual sdr::properties::BaseProperties& GetProperties() const SAL_OVERRIDE; diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx index c05a5b80f4c0..03387e2b79ad 100644 --- a/include/svx/svdpage.hxx +++ b/include/svx/svdpage.hxx @@ -326,8 +326,8 @@ public: class SVX_DLLPUBLIC SdrPageGridFrameList { std::vector<SdrPageGridFrame*> aList; private: - SVX_DLLPRIVATE SdrPageGridFrameList(const SdrPageGridFrameList& rSrcList); // never implemented - SVX_DLLPRIVATE void operator=(const SdrPageGridFrameList& rSrcList); // never implemented + SdrPageGridFrameList(const SdrPageGridFrameList& rSrcList) SAL_DELETED_FUNCTION; + void operator=(const SdrPageGridFrameList& rSrcList) SAL_DELETED_FUNCTION; protected: SdrPageGridFrame* GetObject(sal_uInt16 i) const { return aList[i]; } public: @@ -374,8 +374,7 @@ private: void ImpRemoveStyleSheet(); void ImpAddStyleSheet(SfxStyleSheet& rNewStyleSheet); - // not implemented - SdrPageProperties& operator=(const SdrPageProperties& rCandidate); + SdrPageProperties& operator=(const SdrPageProperties& rCandidate) SAL_DELETED_FUNCTION; public: // construct/destruct |