diff --git a/src/App/ExtensionPython.h b/src/App/ExtensionPython.h index ac6920a885..459517669a 100644 --- a/src/App/ExtensionPython.h +++ b/src/App/ExtensionPython.h @@ -48,6 +48,11 @@ public: } virtual ~ExtensionPythonT() { } + + ExtensionPythonT(const ExtensionPythonT&) = delete; + ExtensionPythonT(ExtensionPythonT&&) = delete; + ExtensionPythonT& operator= (const ExtensionPythonT&) = delete; + ExtensionPythonT& operator= (ExtensionPythonT&&) = delete; }; typedef ExtensionPythonT ExtensionPython; diff --git a/src/App/FeatureCustom.h b/src/App/FeatureCustom.h index ea923e0fcb..ad8c49cec8 100644 --- a/src/App/FeatureCustom.h +++ b/src/App/FeatureCustom.h @@ -85,6 +85,11 @@ protected: virtual void onSettingDocument() { FeatureT::onSettingDocument(); } + + FeatureCustomT(const FeatureCustomT&) = delete; + FeatureCustomT(FeatureCustomT&&) = delete; + FeatureCustomT& operator= (const FeatureCustomT&) = delete; + FeatureCustomT& operator= (FeatureCustomT&&) = delete; }; } //namespace App diff --git a/src/App/FeaturePython.h b/src/App/FeaturePython.h index 59fa6db51f..ec8a0efbf1 100644 --- a/src/App/FeaturePython.h +++ b/src/App/FeaturePython.h @@ -342,6 +342,12 @@ protected: FeatureT::onDocumentRestored(); } +public: + FeaturePythonT(const FeaturePythonT&) = delete; + FeaturePythonT(FeaturePythonT&&) = delete; + FeaturePythonT& operator= (const FeaturePythonT&) = delete; + FeaturePythonT& operator= (FeaturePythonT&&) = delete; + private: FeaturePythonImp* imp; PropertyPythonObject Proxy; diff --git a/src/Gui/Command.h b/src/Gui/Command.h index 4436ebacfb..c24b641551 100644 --- a/src/Gui/Command.h +++ b/src/Gui/Command.h @@ -905,10 +905,16 @@ private: {\ public:\ X();\ + virtual ~X(){}\ virtual const char* className() const\ { return #X; }\ protected: \ virtual void activated(int iMsg);\ +private:\ + X(const X&) = delete;\ + X(X&&) = delete;\ + X& operator= (const X&) = delete;\ + X& operator= (X&&) = delete;\ }; /** The Command Macro Standard + isActive() @@ -926,6 +932,11 @@ public:\ protected: \ virtual void activated(int iMsg);\ virtual bool isActive(void);\ +private:\ + X(const X&) = delete;\ + X(X&&) = delete;\ + X& operator= (const X&) = delete;\ + X& operator= (X&&) = delete;\ }; /** The Command Macro Standard + createAction() @@ -943,6 +954,11 @@ public:\ protected: \ virtual void activated(int iMsg);\ virtual Gui::Action * createAction(void);\ +private:\ + X(const X&) = delete;\ + X(X&&) = delete;\ + X& operator= (const X&) = delete;\ + X& operator= (X&&) = delete;\ }; /** The Command Macro Standard + isActive() + createAction() @@ -961,6 +977,11 @@ protected: \ virtual void activated(int iMsg);\ virtual bool isActive(void);\ virtual Gui::Action * createAction(void);\ +private:\ + X(const X&) = delete;\ + X(X&&) = delete;\ + X& operator= (const X&) = delete;\ + X& operator= (X&&) = delete;\ }; /** The Command Macro Standard + isActive() + updateAction() @@ -979,6 +1000,11 @@ public:\ protected: \ virtual void activated(int iMsg);\ virtual bool isActive(void);\ +private:\ + X(const X&) = delete;\ + X(X&&) = delete;\ + X& operator= (const X&) = delete;\ + X& operator= (X&&) = delete;\ }; /** The Command Macro Standard + isActive() + createAction() @@ -999,6 +1025,11 @@ protected: \ virtual void activated(int iMsg);\ virtual bool isActive(void);\ virtual Gui::Action * createAction(void);\ +private:\ + X(const X&) = delete;\ + X(X&&) = delete;\ + X& operator= (const X&) = delete;\ + X& operator= (X&&) = delete;\ }; /** The Command Macro Standard + isActive() + createAction() @@ -1020,6 +1051,11 @@ protected: \ virtual void activated(int iMsg);\ virtual bool isActive(void);\ virtual Gui::Action * createAction(void);\ +private:\ + X(const X&) = delete;\ + X(X&&) = delete;\ + X& operator= (const X&) = delete;\ + X& operator= (X&&) = delete;\ }; /** The Command Macro view @@ -1042,6 +1078,11 @@ protected: \ Gui::MDIView* view = Gui::getMainWindow()->activeWindow();\ return view && view->isDerivedFrom(Gui::View3DInventor::getClassTypeId());\ }\ +private:\ + X(const X&) = delete;\ + X(X&&) = delete;\ + X& operator= (const X&) = delete;\ + X& operator= (X&&) = delete;\ }; #endif // GUI_COMMAND_H diff --git a/src/Gui/ViewProviderExtensionPython.h b/src/Gui/ViewProviderExtensionPython.h index 86f5b37902..d2e5bc440f 100644 --- a/src/Gui/ViewProviderExtensionPython.h +++ b/src/Gui/ViewProviderExtensionPython.h @@ -47,6 +47,11 @@ public: } virtual ~ViewProviderExtensionPythonT() { } + + ViewProviderExtensionPythonT(const ViewProviderExtensionPythonT&) = delete; + ViewProviderExtensionPythonT(ViewProviderExtensionPythonT&&) = delete; + ViewProviderExtensionPythonT& operator= (const ViewProviderExtensionPythonT&) = delete; + ViewProviderExtensionPythonT& operator= (ViewProviderExtensionPythonT&&) = delete; }; typedef ViewProviderExtensionPythonT ViewProviderExtensionPython; diff --git a/src/Gui/ViewProviderPythonFeature.h b/src/Gui/ViewProviderPythonFeature.h index 1c190dbfd7..ed2aeb0bfc 100644 --- a/src/Gui/ViewProviderPythonFeature.h +++ b/src/Gui/ViewProviderPythonFeature.h @@ -608,6 +608,12 @@ protected: viewerMode = mode; } +public: + ViewProviderPythonFeatureT(const ViewProviderPythonFeatureT&) = delete; + ViewProviderPythonFeatureT(ViewProviderPythonFeatureT&&) = delete; + ViewProviderPythonFeatureT& operator= (const ViewProviderPythonFeatureT&) = delete; + ViewProviderPythonFeatureT& operator= (ViewProviderPythonFeatureT&&) = delete; + private: ViewProviderPythonFeatureImp* imp; App::PropertyPythonObject Proxy; diff --git a/src/Mod/Points/App/PointsAlgos.cpp b/src/Mod/Points/App/PointsAlgos.cpp index ee95af75cd..79932ee785 100644 --- a/src/Mod/Points/App/PointsAlgos.cpp +++ b/src/Mod/Points/App/PointsAlgos.cpp @@ -310,6 +310,12 @@ protected: return seekoff(pos, std::ios_base::beg); } +private: + DataStreambuf(const DataStreambuf&) = delete; + DataStreambuf(DataStreambuf&&) = delete; + DataStreambuf& operator=(const DataStreambuf&) = delete; + DataStreambuf& operator=(DataStreambuf&&) = delete; + private: const std::vector& _buffer; int _beg, _end, _cur;