summaryrefslogtreecommitdiffstats
path: root/ingen/client
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 /ingen/client
parent4ca52683ce01f833c552aa62dd80a6a3e48e785c (diff)
downloadingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.tar.gz
ingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.tar.bz2
ingen-ecad88d2128f920f5e11cc3ff443d62b225c79d3.zip
Cleanup: Use "using" instead of "typedef" where appropriate
Diffstat (limited to 'ingen/client')
-rw-r--r--ingen/client/BlockModel.hpp2
-rw-r--r--ingen/client/ClientStore.hpp3
-rw-r--r--ingen/client/PluginModel.hpp4
3 files changed, 5 insertions, 4 deletions
diff --git a/ingen/client/BlockModel.hpp b/ingen/client/BlockModel.hpp
index 6b9881c5..f6aa731a 100644
--- a/ingen/client/BlockModel.hpp
+++ b/ingen/client/BlockModel.hpp
@@ -50,7 +50,7 @@ public:
GraphType graph_type() const override { return Node::GraphType::BLOCK; }
- typedef std::vector< SPtr<const PortModel> > Ports;
+ using Ports = std::vector<SPtr<const PortModel>>;
SPtr<const PortModel> get_port(const Raul::Symbol& symbol) const;
SPtr<const PortModel> get_port(uint32_t index) const;
diff --git a/ingen/client/ClientStore.hpp b/ingen/client/ClientStore.hpp
index 5cb097e8..7d83e9f6 100644
--- a/ingen/client/ClientStore.hpp
+++ b/ingen/client/ClientStore.hpp
@@ -71,7 +71,8 @@ public:
void clear();
- typedef std::map< const URI, SPtr<PluginModel> > Plugins;
+ using Plugins = std::map<const URI, SPtr<PluginModel>>;
+
SPtr<const Plugins> plugins() const { return _plugins; }
SPtr<Plugins> plugins() { return _plugins; }
void set_plugins(SPtr<Plugins> p) { _plugins = p; }
diff --git a/ingen/client/PluginModel.hpp b/ingen/client/PluginModel.hpp
index 468816aa..5f43b3c4 100644
--- a/ingen/client/PluginModel.hpp
+++ b/ingen/client/PluginModel.hpp
@@ -67,10 +67,10 @@ public:
std::string human_name() const;
std::string port_human_name(uint32_t i) const;
- typedef std::map<float, std::string> ScalePoints;
+ using ScalePoints = std::map<float, std::string>;
ScalePoints port_scale_points(uint32_t i) const;
- typedef std::map<URI, std::string> Presets;
+ using Presets = std::map<URI, std::string>;
const Presets& presets() const { return _presets; }
static LilvWorld* lilv_world() { return _lilv_world; }