summaryrefslogtreecommitdiffstats
path: root/src/AlsaDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:57:38 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:51 +0100
commit34a5ca666a2dceb9eacc1087acb7bebf2f7e2758 (patch)
treeded0141c05fe09f6f2b91fd4176e1ace4153787b /src/AlsaDriver.cpp
parent6d5aca1fb1552ad791a59507ebbafcda7884cb6c (diff)
downloadpatchage-34a5ca666a2dceb9eacc1087acb7bebf2f7e2758.tar.gz
patchage-34a5ca666a2dceb9eacc1087acb7bebf2f7e2758.tar.bz2
patchage-34a5ca666a2dceb9eacc1087acb7bebf2f7e2758.zip
Use auto where appropriate
Diffstat (limited to 'src/AlsaDriver.cpp')
-rw-r--r--src/AlsaDriver.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp
index f34fb1b..4ce4ae4 100644
--- a/src/AlsaDriver.cpp
+++ b/src/AlsaDriver.cpp
@@ -304,14 +304,13 @@ AlsaDriver::create_port(PatchageModule& parent,
bool is_input,
snd_seq_addr_t addr)
{
- PatchagePort* ret =
- new PatchagePort(parent,
- ALSA_MIDI,
- name,
- "",
- is_input,
- _app->conf()->get_port_color(ALSA_MIDI),
- _app->show_human_names());
+ auto* ret = new PatchagePort(parent,
+ ALSA_MIDI,
+ name,
+ "",
+ is_input,
+ _app->conf()->get_port_color(ALSA_MIDI),
+ _app->show_human_names());
dynamic_cast<PatchageCanvas*>(parent.canvas())
->index_port(PortID(addr, is_input), ret);
@@ -506,7 +505,7 @@ AlsaDriver::create_refresh_port()
void*
AlsaDriver::refresh_main(void* me)
{
- AlsaDriver* ad = (AlsaDriver*)me;
+ auto* ad = (AlsaDriver*)me;
ad->_refresh_main();
return nullptr;
}