Mod: modernize C++: replace 'typedef' with 'using'

This commit is contained in:
wmayer
2022-08-29 16:21:46 +02:00
parent ba8d5ab055
commit e205daa43d
23 changed files with 32 additions and 32 deletions

View File

@@ -67,7 +67,7 @@ protected:
//@}
};
typedef App::FeaturePythonT<FeatureView> FeatureViewPython;
using FeatureViewPython = App::FeaturePythonT<FeatureView>;
} //namespace Drawing

View File

@@ -64,7 +64,7 @@ public:
}
};
typedef App::FeaturePythonT<FeatureViewAnnotation> FeatureViewAnnotationPython;
using FeatureViewAnnotationPython = App::FeaturePythonT<FeatureViewAnnotation>;
} //namespace Drawing

View File

@@ -72,7 +72,7 @@ private:
static App::PropertyFloatConstraint::Constraints floatRange;
};
typedef App::FeaturePythonT<FeatureViewPart> FeatureViewPartPython;
using FeatureViewPartPython = App::FeaturePythonT<FeatureViewPart>;
} //namespace Drawing

View File

@@ -66,7 +66,7 @@ protected:
void onChanged(const App::Property* prop);
};
typedef App::FeaturePythonT<FeatureViewSymbol> FeatureViewSymbolPython;
using FeatureViewSymbolPython = App::FeaturePythonT<FeatureViewSymbol>;
} //namespace Drawing

View File

@@ -50,7 +50,7 @@ public:
WithHidden = 1,
WithSmooth = 2
};
typedef std::map<std::string,std::string> XmlAttributes;
using XmlAttributes = std::map<std::string,std::string>;
std::string getSVG(ExtractionType type, double tolerance=0.05,
XmlAttributes V_style=XmlAttributes(),

View File

@@ -61,7 +61,7 @@ public:
//@}
};
typedef Gui::ViewProviderPythonFeatureT<ViewProviderDrawingView> ViewProviderDrawingViewPython;
using ViewProviderDrawingViewPython = Gui::ViewProviderPythonFeatureT<ViewProviderDrawingView>;
class DrawingGuiExport ViewProviderDrawingClip : public Gui::ViewProviderDocumentObjectGroup
{