diff --git a/src/Mod/PartDesign/App/DatumPoint.h b/src/Mod/PartDesign/App/DatumPoint.h index 5f72f04c46..311b56fa44 100644 --- a/src/Mod/PartDesign/App/DatumPoint.h +++ b/src/Mod/PartDesign/App/DatumPoint.h @@ -45,7 +45,7 @@ public: Base::Vector3d getPoint(); - typedef Part::Datum Superclass; + using Superclass = Part::Datum; protected: void onChanged(const App::Property* prop) override; diff --git a/src/Mod/PartDesign/App/Feature.h b/src/Mod/PartDesign/App/Feature.h index 3c3df3075b..40c21e17f1 100644 --- a/src/Mod/PartDesign/App/Feature.h +++ b/src/Mod/PartDesign/App/Feature.h @@ -36,7 +36,7 @@ class gp_Pln; namespace PartDesign { -typedef Part::TopoShape TopoShape; +using TopoShape = Part::TopoShape; class Body; @@ -96,7 +96,7 @@ protected: static TopoDS_Shape makeShapeFromPlane(const App::DocumentObject* obj); }; -typedef App::FeaturePythonT FeaturePython; +using FeaturePython = App::FeaturePythonT; } //namespace PartDesign diff --git a/src/Mod/PartDesign/App/FeatureAddSub.h b/src/Mod/PartDesign/App/FeatureAddSub.h index d6c09aabab..689aa1e965 100644 --- a/src/Mod/PartDesign/App/FeatureAddSub.h +++ b/src/Mod/PartDesign/App/FeatureAddSub.h @@ -57,7 +57,7 @@ protected: TopoDS_Shape refineShapeIfActive(const TopoDS_Shape&) const; }; -typedef App::FeaturePythonT FeatureAddSubPython; +using FeatureAddSubPython = App::FeaturePythonT; class FeatureAdditivePython : public FeatureAddSubPython { diff --git a/src/Mod/PartDesign/App/FeatureTransformed.cpp b/src/Mod/PartDesign/App/FeatureTransformed.cpp index 0167939037..14b6fdd482 100644 --- a/src/Mod/PartDesign/App/FeatureTransformed.cpp +++ b/src/Mod/PartDesign/App/FeatureTransformed.cpp @@ -342,9 +342,9 @@ TopoDS_Shape Transformed::refineShapeIfActive(const TopoDS_Shape& oldShape) cons void Transformed::divideTools(const std::vector &toolsIn, std::vector &individualsOut, TopoDS_Compound &compoundOut) const { - typedef std::pair ShapeBoundPair; - typedef std::list PairList; - typedef std::vector PairVector; + using ShapeBoundPair = std::pair; + using PairList = std::list; + using PairVector = std::vector; PairList pairList; diff --git a/src/Mod/PartDesign/App/ShapeBinder.h b/src/Mod/PartDesign/App/ShapeBinder.h index 03f9e6aca2..f0ca398047 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.h +++ b/src/Mod/PartDesign/App/ShapeBinder.h @@ -71,14 +71,14 @@ private: void slotChangedObject(const App::DocumentObject& Obj, const App::Property& Prop); void onSettingDocument() override; - typedef boost::signals2::connection Connection; + using Connection = boost::signals2::connection; Connection connectDocumentChangedObject; }; class PartDesignExport SubShapeBinder : public Part::Feature { PROPERTY_HEADER_WITH_OVERRIDE(PartDesign::SubShapeBinder); public: - typedef Part::Feature inherited; + using inherited = Part::Feature; SubShapeBinder(); ~SubShapeBinder() override; @@ -140,7 +140,7 @@ protected: void slotRecomputedObject(const App::DocumentObject& Obj); - typedef boost::signals2::scoped_connection Connection; + using Connection = boost::signals2::scoped_connection; Connection connRecomputedObj; App::Document *contextDoc = nullptr; @@ -151,7 +151,7 @@ protected: std::vector _CopiedObjs; }; -typedef App::FeaturePythonT SubShapeBinderPython; +using SubShapeBinderPython = App::FeaturePythonT; } //namespace PartDesign diff --git a/src/Mod/PartDesign/Gui/TaskHoleParameters.h b/src/Mod/PartDesign/Gui/TaskHoleParameters.h index b06583b878..96e9596377 100644 --- a/src/Mod/PartDesign/Gui/TaskHoleParameters.h +++ b/src/Mod/PartDesign/Gui/TaskHoleParameters.h @@ -128,7 +128,7 @@ private: private: - typedef boost::signals2::scoped_connection Connection; + using Connection = boost::signals2::scoped_connection; Connection connectPropChanged; std::unique_ptr observer; diff --git a/src/Mod/PartDesign/Gui/TaskTransformedMessages.h b/src/Mod/PartDesign/Gui/TaskTransformedMessages.h index a6f0c09c6d..39c7888ad5 100644 --- a/src/Mod/PartDesign/Gui/TaskTransformedMessages.h +++ b/src/Mod/PartDesign/Gui/TaskTransformedMessages.h @@ -27,7 +27,7 @@ #include class Ui_TaskTransformedMessages; -typedef boost::signals2::connection Connection; +using Connection = boost::signals2::connection; namespace App { class Property; diff --git a/src/Mod/PartDesign/Gui/ViewProvider.h b/src/Mod/PartDesign/Gui/ViewProvider.h index aee7a80bc0..2896b75948 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.h +++ b/src/Mod/PartDesign/Gui/ViewProvider.h @@ -39,7 +39,7 @@ class TaskDlgFeatureParameters; */ class PartDesignGuiExport ViewProvider : public PartGui::ViewProviderPart, PartGui::ViewProviderAttachExtension { - typedef PartGui::ViewProviderPart inherited; + using inherited = PartGui::ViewProviderPart; PROPERTY_HEADER_WITH_OVERRIDE(PartDesignGui::ViewProvider); public: @@ -90,7 +90,7 @@ protected: bool isSetTipIcon; }; -typedef Gui::ViewProviderPythonFeatureT ViewProviderPython; +using ViewProviderPython = Gui::ViewProviderPythonFeatureT; } // namespace PartDesignGui diff --git a/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.h b/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.h index a4492b4de8..8ffb458ec8 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.h +++ b/src/Mod/PartDesign/Gui/ViewProviderShapeBinder.h @@ -83,7 +83,7 @@ private: void updatePlacement(bool transaction); }; -typedef Gui::ViewProviderPythonFeatureT ViewProviderSubShapeBinderPython; +using ViewProviderSubShapeBinderPython = Gui::ViewProviderPythonFeatureT; } // namespace PartDesignGui