summaryrefslogtreecommitdiffstats
path: root/src/Parser.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 17:12:50 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commitecad88d2128f920f5e11cc3ff443d62b225c79d3 (patch)
treec497cebca3455f4201f38d017db0f1566f8004f7 /src/Parser.cpp
parent4ca52683ce01f833c552aa62dd80a6a3e48e785c (diff)
downloadingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.tar.gz
ingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.tar.bz2
ingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.zip
Cleanup: Use "using" instead of "typedef" where appropriate
Diffstat (limited to 'src/Parser.cpp')
-rw-r--r--src/Parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Parser.cpp b/src/Parser.cpp
index ff416106..e8599cf5 100644
--- a/src/Parser.cpp
+++ b/src/Parser.cpp
@@ -147,7 +147,7 @@ get_properties(ingen::World& world,
return props;
}
-typedef std::pair<Raul::Path, Properties> PortRecord;
+using PortRecord = std::pair<Raul::Path, Properties>;
static boost::optional<PortRecord>
get_port(ingen::World& world,
@@ -354,7 +354,7 @@ parse_graph(ingen::World& world,
target.put(path_to_uri(graph_path), props, ctx);
// For each port on this graph
- typedef std::map<uint32_t, PortRecord> PortRecords;
+ using PortRecords = std::map<uint32_t, PortRecord>;
PortRecords ports;
for (Sord::Iter p = model.find(graph, lv2_port, nil); !p.end(); ++p) {
Sord::Node port = p.get_object();
@@ -532,7 +532,7 @@ parse(ingen::World& world,
}
// Get all subjects and their types (?subject a ?type)
- typedef std::map< Sord::Node, std::set<Sord::Node> > Subjects;
+ using Subjects = std::map< Sord::Node, std::set<Sord::Node> >;
Subjects subjects;
for (Sord::Iter i = model.find(subject, rdf_type, nil); !i.end(); ++i) {
const Sord::Node& subject = i.get_subject();