Mod: modernize C++: replace 'typedef' with 'using'
This commit is contained in:
@@ -51,7 +51,7 @@ public:
|
||||
Py::Object recompute(const Py::Tuple&);
|
||||
|
||||
private:
|
||||
typedef PyObject* (*method_varargs_handler)(PyObject *_self, PyObject *_args);
|
||||
using method_varargs_handler = PyObject* (*)(PyObject *_self, PyObject *_args);
|
||||
static method_varargs_handler pycxx_handler;
|
||||
static PyObject *method_varargs_ext_handler(PyObject *_self, PyObject *_args);
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ protected:
|
||||
};
|
||||
|
||||
class SoWidgetShape : public SoShape {
|
||||
typedef SoShape inherited;
|
||||
using inherited = SoShape;
|
||||
|
||||
SO_NODE_HEADER(SoWidgetShape);
|
||||
|
||||
@@ -63,7 +63,7 @@ protected:
|
||||
//virtual void getPrimitiveCount(SoGetPrimitiveCountAction * action);
|
||||
//virtual void rayPick (SoRayPickAction *action);
|
||||
virtual void generatePrimitives(SoAction *action);
|
||||
void getQuad(SoState * state, SbVec3f & v0, SbVec3f & v1, SbVec3f & v2, SbVec3f & v3);
|
||||
void getQuad(SoState * state, SbVec3f & v0, SbVec3f & v1, SbVec3f & v2, SbVec3f & v3);
|
||||
|
||||
private:
|
||||
virtual ~SoWidgetShape(){};
|
||||
|
||||
@@ -63,7 +63,7 @@ using namespace Spreadsheet;
|
||||
|
||||
PROPERTY_SOURCE(Spreadsheet::Sheet, App::DocumentObject)
|
||||
|
||||
typedef boost::adjacency_list <
|
||||
using DependencyList = boost::adjacency_list <
|
||||
boost::vecS, // class OutEdgeListS : a Sequence or an AssociativeContainer
|
||||
boost::vecS, // class VertexListS : a Sequence or a RandomAccessContainer
|
||||
boost::directedS, // class DirectedS : This is a directed graph
|
||||
@@ -71,10 +71,10 @@ boost::no_property, // class VertexProperty:
|
||||
boost::no_property, // class EdgeProperty:
|
||||
boost::no_property, // class GraphProperty:
|
||||
boost::listS // class EdgeListS:
|
||||
> DependencyList;
|
||||
typedef boost::graph_traits<DependencyList> Traits;
|
||||
typedef Traits::vertex_descriptor Vertex;
|
||||
typedef Traits::edge_descriptor Edge;
|
||||
>;
|
||||
using Traits = boost::graph_traits<DependencyList>;
|
||||
using Vertex = Traits::vertex_descriptor;
|
||||
using Edge = Traits::edge_descriptor;
|
||||
|
||||
/**
|
||||
* Construct a new Sheet object.
|
||||
|
||||
@@ -276,7 +276,7 @@ protected:
|
||||
PropertyRowHeights rowHeights;
|
||||
|
||||
/* Document observers to track changes to external properties */
|
||||
typedef std::map<std::string, SheetObserver* > ObserverMap;
|
||||
using ObserverMap = std::map<std::string, SheetObserver* >;
|
||||
ObserverMap observers;
|
||||
|
||||
int currentRow = -1;
|
||||
@@ -292,7 +292,7 @@ protected:
|
||||
friend class PropertySheet;
|
||||
};
|
||||
|
||||
typedef App::FeaturePythonT<Sheet> SheetPython;
|
||||
using SheetPython = App::FeaturePythonT<Sheet>;
|
||||
|
||||
} //namespace Spreadsheet
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ private:
|
||||
QPointer<SheetView> view;
|
||||
};
|
||||
|
||||
typedef Gui::ViewProviderPythonFeatureT<ViewProviderSheet> ViewProviderSheetPython;
|
||||
using ViewProviderSheetPython = Gui::ViewProviderPythonFeatureT<ViewProviderSheet>;
|
||||
|
||||
} //namespace Spreadsheet
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ class Ui_TaskFilling;
|
||||
class ViewProviderFilling : public PartGui::ViewProviderSpline
|
||||
{
|
||||
PROPERTY_HEADER_WITH_OVERRIDE(SurfaceGui::ViewProviderFilling);
|
||||
typedef std::vector<App::PropertyLinkSubList::SubSet> References;
|
||||
using References = std::vector<App::PropertyLinkSubList::SubSet>;
|
||||
|
||||
public:
|
||||
enum ShapeType {Vertex, Edge, Face};
|
||||
|
||||
@@ -42,7 +42,7 @@ class Ui_Sections;
|
||||
class ViewProviderSections : public PartGui::ViewProviderSpline
|
||||
{
|
||||
PROPERTY_HEADER_WITH_OVERRIDE(SurfaceGui::ViewProviderSections);
|
||||
typedef std::vector<App::PropertyLinkSubList::SubSet> References;
|
||||
using References = std::vector<App::PropertyLinkSubList::SubSet>;
|
||||
|
||||
public:
|
||||
enum ShapeType {Vertex, Edge, Face};
|
||||
|
||||
Reference in New Issue
Block a user