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 /svx | |
parent | f862290c91e66b859504e6c271309f73fa762a0d (diff) |
loplugin:deletedspecial
Change-Id: I1ffc6af694367f0ff70b7598c093203f1f68882c
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/sdr/contact/viewcontactofunocontrol.hxx | 5 | ||||
-rw-r--r-- | svx/inc/sdr/contact/viewobjectcontactofunocontrol.hxx | 10 | ||||
-rw-r--r-- | svx/source/accessibility/ChildrenManagerImpl.hxx | 6 | ||||
-rw-r--r-- | svx/source/form/fmcontrollayout.cxx | 19 | ||||
-rw-r--r-- | svx/source/inc/datanavi.hxx | 4 | ||||
-rw-r--r-- | svx/source/inc/delayedevent.hxx | 5 | ||||
-rw-r--r-- | svx/source/inc/fmcontrollayout.hxx | 22 | ||||
-rw-r--r-- | svx/source/inc/fmobj.hxx | 2 | ||||
-rw-r--r-- | svx/source/inc/fmpgeimp.hxx | 5 | ||||
-rw-r--r-- | svx/source/inc/formcontrolling.hxx | 5 | ||||
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 13 | ||||
-rw-r--r-- | svx/source/table/accessiblecell.hxx | 5 | ||||
-rw-r--r-- | svx/source/unogallery/unogalitem.hxx | 6 |
13 files changed, 35 insertions, 72 deletions
diff --git a/svx/inc/sdr/contact/viewcontactofunocontrol.hxx b/svx/inc/sdr/contact/viewcontactofunocontrol.hxx index 254b9033ed09..9544170bc834 100644 --- a/svx/inc/sdr/contact/viewcontactofunocontrol.hxx +++ b/svx/inc/sdr/contact/viewcontactofunocontrol.hxx @@ -73,9 +73,8 @@ namespace sdr { namespace contact { virtual ViewObjectContact& CreateObjectSpecificViewObjectContact( ObjectContact& _rObjectContact ) SAL_OVERRIDE; private: - ViewContactOfUnoControl(); // never implemented - ViewContactOfUnoControl( const ViewContactOfUnoControl& ); // never implemented - ViewContactOfUnoControl& operator=( const ViewContactOfUnoControl& ); // never implemented + ViewContactOfUnoControl( const ViewContactOfUnoControl& ) SAL_DELETED_FUNCTION; + ViewContactOfUnoControl& operator=( const ViewContactOfUnoControl& ) SAL_DELETED_FUNCTION; protected: // This method is responsible for creating the graphical visualisation data diff --git a/svx/inc/sdr/contact/viewobjectcontactofunocontrol.hxx b/svx/inc/sdr/contact/viewobjectcontactofunocontrol.hxx index 50140badca56..2d461f849b1d 100644 --- a/svx/inc/sdr/contact/viewobjectcontactofunocontrol.hxx +++ b/svx/inc/sdr/contact/viewobjectcontactofunocontrol.hxx @@ -100,9 +100,8 @@ namespace sdr { namespace contact { void impl_onControlChangedOrModified(); private: - ViewObjectContactOfUnoControl(); // never implemented - ViewObjectContactOfUnoControl( const ViewObjectContactOfUnoControl& ); // never implemented - ViewObjectContactOfUnoControl& operator=( const ViewObjectContactOfUnoControl& ); // never implemented + ViewObjectContactOfUnoControl( const ViewObjectContactOfUnoControl& ) SAL_DELETED_FUNCTION; + ViewObjectContactOfUnoControl& operator=( const ViewObjectContactOfUnoControl& ) SAL_DELETED_FUNCTION; }; class SVX_DLLPRIVATE UnoControlPrintOrPreviewContact : public ViewObjectContactOfUnoControl @@ -112,9 +111,8 @@ namespace sdr { namespace contact { virtual ~UnoControlPrintOrPreviewContact(); private: - UnoControlPrintOrPreviewContact(); // never implemented - UnoControlPrintOrPreviewContact( const UnoControlPrintOrPreviewContact& ); // never implemented - UnoControlPrintOrPreviewContact& operator=( const UnoControlPrintOrPreviewContact& ); // never implemented + UnoControlPrintOrPreviewContact( const UnoControlPrintOrPreviewContact& ) SAL_DELETED_FUNCTION; + UnoControlPrintOrPreviewContact& operator=( const UnoControlPrintOrPreviewContact& ) SAL_DELETED_FUNCTION; virtual drawinglayer::primitive2d::Primitive2DSequence createPrimitive2DSequence(const DisplayInfo& rDisplayInfo ) const SAL_OVERRIDE; }; diff --git a/svx/source/accessibility/ChildrenManagerImpl.hxx b/svx/source/accessibility/ChildrenManagerImpl.hxx index 4ef4d8b30fc2..93769e05f2e9 100644 --- a/svx/source/accessibility/ChildrenManagerImpl.hxx +++ b/svx/source/accessibility/ChildrenManagerImpl.hxx @@ -363,10 +363,8 @@ private: */ sal_Int32 mnNewNameIndex; - // Don't use the copy constructor or the assignment operator. They are - // not implemented (and are not intended to be). - ChildrenManagerImpl (const ChildrenManagerImpl&); - ChildrenManagerImpl& operator= (const ChildrenManagerImpl&); + ChildrenManagerImpl (const ChildrenManagerImpl&) SAL_DELETED_FUNCTION; + ChildrenManagerImpl& operator= (const ChildrenManagerImpl&) SAL_DELETED_FUNCTION; /** This member points to the currently focused shape. It is NULL when there is no focused shape. diff --git a/svx/source/form/fmcontrollayout.cxx b/svx/source/form/fmcontrollayout.cxx index dc76c80e8d57..9bcafa7ffba3 100644 --- a/svx/source/form/fmcontrollayout.cxx +++ b/svx/source/form/fmcontrollayout.cxx @@ -73,6 +73,14 @@ namespace svxform namespace { + ::utl::OConfigurationNode getLayoutSettings( DocumentType _eDocType ) + { + OUString sConfigName = "/org.openoffice.Office.Common/Forms/ControlLayout/"; + sConfigName += DocumentClassification::getModuleIdentifierForDocumentType( _eDocType ); + return OConfigurationTreeRoot::createWithComponentContext( + ::comphelper::getProcessComponentContext(), // TODO + sConfigName ); + } template< class INTERFACE_TYPE > Reference< INTERFACE_TYPE > getTypedModelNode( const Reference< XInterface >& _rxModelNode ) @@ -279,17 +287,6 @@ namespace svxform } } - - ::utl::OConfigurationNode ControlLayouter::getLayoutSettings( DocumentType _eDocType ) - { - OUString sConfigName = "/org.openoffice.Office.Common/Forms/ControlLayout/"; - sConfigName += DocumentClassification::getModuleIdentifierForDocumentType( _eDocType ); - return OConfigurationTreeRoot::createWithComponentContext( - ::comphelper::getProcessComponentContext(), // TODO - sConfigName ); - } - - bool ControlLayouter::useDynamicBorderColor( DocumentType _eDocType ) { OConfigurationNode aConfig = getLayoutSettings( _eDocType ); diff --git a/svx/source/inc/datanavi.hxx b/svx/source/inc/datanavi.hxx index a3459b8329d2..7a351b9e1fa9 100644 --- a/svx/source/inc/datanavi.hxx +++ b/svx/source/inc/datanavi.hxx @@ -156,7 +156,7 @@ namespace svxform OUString m_sInstance_API; OUString m_sNone_API; - ReplaceString( const ReplaceString& ); + ReplaceString( const ReplaceString& ) SAL_DELETED_FUNCTION; public: ReplaceString() : @@ -204,7 +204,7 @@ namespace svxform OUString m_sPut_API; OUString m_sGet_API; - MethodString( const MethodString& ); + MethodString( const MethodString& ) SAL_DELETED_FUNCTION; public: diff --git a/svx/source/inc/delayedevent.hxx b/svx/source/inc/delayedevent.hxx index 9f4a12a1b533..5f078aa9d3c7 100644 --- a/svx/source/inc/delayedevent.hxx +++ b/svx/source/inc/delayedevent.hxx @@ -69,9 +69,8 @@ namespace svxform DECL_LINK( OnCall, void* ); private: - DelayedEvent(); // never implemented - DelayedEvent( const DelayedEvent& ); // never implemented - DelayedEvent& operator=( const DelayedEvent& ); // never implemented + DelayedEvent( const DelayedEvent& ) SAL_DELETED_FUNCTION; + DelayedEvent& operator=( const DelayedEvent& ) SAL_DELETED_FUNCTION; }; diff --git a/svx/source/inc/fmcontrollayout.hxx b/svx/source/inc/fmcontrollayout.hxx index 422763c957fd..b717c8f6cb37 100644 --- a/svx/source/inc/fmcontrollayout.hxx +++ b/svx/source/inc/fmcontrollayout.hxx @@ -29,24 +29,23 @@ namespace svxform { - class ControlLayouter + namespace ControlLayouter { - public: /** initializes the layout of a newly created form control (model) */ - static void initializeControlLayout( + void initializeControlLayout( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxControlModel, DocumentType _eDocType ); /** determines whether for the given document type, dynamic control border coloring is enabled */ - static bool useDynamicBorderColor( DocumentType _eDocType ); + bool useDynamicBorderColor( DocumentType _eDocType ); /** determines whether for the given document type, form controls should use the document's reference device for text rendering */ - static bool useDocumentReferenceDevice( DocumentType _eDocType ); + bool useDocumentReferenceDevice( DocumentType _eDocType ); /** gets the "default" style in a document which can be used if some default text format is needed @@ -56,18 +55,9 @@ namespace svxform @param _rxModel a form component. */ - static ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > + ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > getDefaultDocumentTextStyle( const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxModel ); - - private: - ControlLayouter(); // never implemented - - private: - static ::utl::OConfigurationNode - getLayoutSettings( - DocumentType _eDocType - ); - }; + } } // namespace svxform diff --git a/svx/source/inc/fmobj.hxx b/svx/source/inc/fmobj.hxx index 8663bc9e1b5d..01ff874296c6 100644 --- a/svx/source/inc/fmobj.hxx +++ b/svx/source/inc/fmobj.hxx @@ -29,7 +29,7 @@ class SVX_DLLPUBLIC FmFormObj: public SdrUnoObj { - FmFormObj( const FmFormObj& ); // disabled + FmFormObj( const FmFormObj& ) SAL_DELETED_FUNCTION; ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor > aEvts; // events des Objects ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor> m_aEventsHistory; diff --git a/svx/source/inc/fmpgeimp.hxx b/svx/source/inc/fmpgeimp.hxx index fee4a834dfb0..17b5644ee484 100644 --- a/svx/source/inc/fmpgeimp.hxx +++ b/svx/source/inc/fmpgeimp.hxx @@ -146,9 +146,8 @@ private: impl_createControlShapeMap_nothrow(); private: - FmFormPageImpl(); // never implemented - FmFormPageImpl( const FmFormPageImpl& ); // never implemented - FmFormPageImpl& operator=( const FmFormPageImpl& ); // never implemented + FmFormPageImpl( const FmFormPageImpl& ) SAL_DELETED_FUNCTION; + FmFormPageImpl& operator=( const FmFormPageImpl& ) SAL_DELETED_FUNCTION; }; diff --git a/svx/source/inc/formcontrolling.hxx b/svx/source/inc/formcontrolling.hxx index 5822a6ec1934..5927e4a505dc 100644 --- a/svx/source/inc/formcontrolling.hxx +++ b/svx/source/inc/formcontrolling.hxx @@ -215,9 +215,8 @@ namespace svx } private: - FormControllerHelper(); // never implemented - FormControllerHelper( const FormControllerHelper& ); // never implemented - FormControllerHelper& operator=( const FormControllerHelper& ); // never implemented + FormControllerHelper( const FormControllerHelper& ) SAL_DELETED_FUNCTION; + FormControllerHelper& operator=( const FormControllerHelper& ) SAL_DELETED_FUNCTION; }; diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 60aec9453890..64a5304cd04d 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -306,19 +306,6 @@ SdrModel::~SdrModel() delete mpImpl; } - -// not yet implemented -void SdrModel::operator=(const SdrModel&) -{ - OSL_FAIL("SdrModel::operator=() is not yet implemented."); -} - -bool SdrModel::operator==(const SdrModel&) const -{ - OSL_FAIL("SdrModel::operator==() is not yet implemented"); - return false; -} - void SdrModel::SetSwapGraphics( bool bSwap ) { bSwapGraphics = bSwap; diff --git a/svx/source/table/accessiblecell.hxx b/svx/source/table/accessiblecell.hxx index fd07cf5925f0..86d31e9d38d1 100644 --- a/svx/source/table/accessiblecell.hxx +++ b/svx/source/table/accessiblecell.hxx @@ -131,9 +131,8 @@ protected: AccessibleTableShape *pAccTable; private: - explicit AccessibleCell(void); // not implemented - explicit AccessibleCell(const AccessibleCell&); // not implemented - AccessibleCell& operator=(const AccessibleCell&); // not implemented + AccessibleCell(const AccessibleCell&) SAL_DELETED_FUNCTION; + AccessibleCell& operator=(const AccessibleCell&) SAL_DELETED_FUNCTION; }; } // end of namespace accessibility diff --git a/svx/source/unogallery/unogalitem.hxx b/svx/source/unogallery/unogalitem.hxx index 7f60ad842acd..a0e0b1e3a95c 100644 --- a/svx/source/unogallery/unogalitem.hxx +++ b/svx/source/unogallery/unogalitem.hxx @@ -95,10 +95,8 @@ private: const ::GalleryObject* implGetObject() const { return mpGalleryObject;} void implSetInvalid(); - // not available - GalleryItem(); - GalleryItem( const GalleryItem& ); - GalleryItem& operator=( const GalleryItem& ); + GalleryItem( const GalleryItem& ) SAL_DELETED_FUNCTION; + GalleryItem& operator=( const GalleryItem& ) SAL_DELETED_FUNCTION; }; |