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.
|
||||
|
||||
Reference in New Issue
Block a user