diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 17:57:44 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:42:51 +0100 |
commit | f80e8274555f0da157e0b8c1fcae975d66178ab7 (patch) | |
tree | d240f930d062b69bb5b8fd4ca4f253d2280ba968 /src/PatchageCanvas.hpp | |
parent | 5f5e293345a063ab7b274edcc76d329891503379 (diff) | |
download | patchage-f80e8274555f0da157e0b8c1fcae975d66178ab7.tar.gz patchage-f80e8274555f0da157e0b8c1fcae975d66178ab7.tar.bz2 patchage-f80e8274555f0da157e0b8c1fcae975d66178ab7.zip |
Use "using"
Diffstat (limited to 'src/PatchageCanvas.hpp')
-rw-r--r-- | src/PatchageCanvas.hpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/PatchageCanvas.hpp b/src/PatchageCanvas.hpp index 35d0abb..0b200f4 100644 --- a/src/PatchageCanvas.hpp +++ b/src/PatchageCanvas.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 @@ -71,16 +71,15 @@ public: void clear(); private: - Patchage* _app; + using PortIndex = std::map<const PortID, PatchagePort*>; + using ModuleIndex = std::multimap<const std::string, PatchageModule*>; bool on_event(GdkEvent* ev); bool on_connection_event(Ganv::Edge* c, GdkEvent* ev); - typedef std::map<const PortID, PatchagePort*> PortIndex; - PortIndex _port_index; - - typedef std::multimap<const std::string, PatchageModule*> ModuleIndex; - ModuleIndex _module_index; + Patchage* _app; + PortIndex _port_index; + ModuleIndex _module_index; }; #endif // PATCHAGE_PATCHAGECANVAS_HPP |