summaryrefslogtreecommitdiffstats
path: root/src/AlsaDriver.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-27 17:57:44 +0100
committerDavid Robillard <d@drobilla.net>2020-11-27 21:42:51 +0100
commitf80e8274555f0da157e0b8c1fcae975d66178ab7 (patch)
treed240f930d062b69bb5b8fd4ca4f253d2280ba968 /src/AlsaDriver.hpp
parent5f5e293345a063ab7b274edcc76d329891503379 (diff)
downloadpatchage-f80e8274555f0da157e0b8c1fcae975d66178ab7.tar.gz
patchage-f80e8274555f0da157e0b8c1fcae975d66178ab7.tar.bz2
patchage-f80e8274555f0da157e0b8c1fcae975d66178ab7.zip
Use "using"
Diffstat (limited to 'src/AlsaDriver.hpp')
-rw-r--r--src/AlsaDriver.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/AlsaDriver.hpp b/src/AlsaDriver.hpp
index a1de0e7..94dd101 100644
--- a/src/AlsaDriver.hpp
+++ b/src/AlsaDriver.hpp
@@ -1,5 +1,5 @@
/* This file is part of Patchage.
- * Copyright 2007-2014 David Robillard <http://drobilla.net>
+ * Copyright 2007-2020 David Robillard <d@drobilla.net>
*
* Patchage is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free
@@ -95,14 +95,13 @@ private:
}
};
- typedef std::set<snd_seq_addr_t, SeqAddrComparator> Ignored;
- Ignored _ignored;
+ using Ignored = std::set<snd_seq_addr_t, SeqAddrComparator>;
+ using Modules = std::multimap<uint8_t, PatchageModule*>;
+ using PortAddrs = std::map<PatchagePort*, PortID>;
- typedef std::multimap<uint8_t, PatchageModule*> Modules;
- Modules _modules;
-
- typedef std::map<PatchagePort*, PortID> PortAddrs;
- PortAddrs _port_addrs;
+ Ignored _ignored;
+ Modules _modules;
+ PortAddrs _port_addrs;
bool ignore(const snd_seq_addr_t& addr, bool add = true);
};