From f80e8274555f0da157e0b8c1fcae975d66178ab7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 27 Nov 2020 17:57:44 +0100 Subject: Use "using" --- src/PatchageCanvas.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/PatchageCanvas.hpp') 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 + * Copyright 2007-2020 David Robillard * * 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; + using ModuleIndex = std::multimap; bool on_event(GdkEvent* ev); bool on_connection_event(Ganv::Edge* c, GdkEvent* ev); - typedef std::map PortIndex; - PortIndex _port_index; - - typedef std::multimap ModuleIndex; - ModuleIndex _module_index; + Patchage* _app; + PortIndex _port_index; + ModuleIndex _module_index; }; #endif // PATCHAGE_PATCHAGECANVAS_HPP -- cgit v1.2.1