Mod: modernize C++: replace 'typedef' with 'using'
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user