summaryrefslogtreecommitdiffstats
path: root/src/PatchageModule.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/PatchageModule.cpp
parent6d5aca1fb1552ad791a59507ebbafcda7884cb6c (diff)
downloadpatchage-34a5ca666a2dceb9eacc1087acb7bebf2f7e2758.tar.gz
patchage-34a5ca666a2dceb9eacc1087acb7bebf2f7e2758.tar.bz2
patchage-34a5ca666a2dceb9eacc1087acb7bebf2f7e2758.zip
Use auto where appropriate
Diffstat (limited to 'src/PatchageModule.cpp')
-rw-r--r--src/PatchageModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PatchageModule.cpp b/src/PatchageModule.cpp
index 8d8dfa7..3a802f6 100644
--- a/src/PatchageModule.cpp
+++ b/src/PatchageModule.cpp
@@ -147,7 +147,7 @@ PatchagePort*
PatchageModule::get_port(const std::string& name)
{
for (Ganv::Port* p : *this) {
- PatchagePort* pport = dynamic_cast<PatchagePort*>(p);
+ auto* pport = dynamic_cast<PatchagePort*>(p);
if (pport && pport->name() == name) {
return pport;
}