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

This commit is contained in:
wmayer
2022-08-29 23:21:15 +02:00
parent 138629633f
commit 312c8f68e4
7 changed files with 13 additions and 13 deletions

View File

@@ -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.