From 98e2535b82ab601081a56c8a22d789d2da25cfd8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Nov 2020 18:31:45 +0100 Subject: Use more reasonable class names --- src/handle_event.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/handle_event.cpp') diff --git a/src/handle_event.cpp b/src/handle_event.cpp index b6412c2..40f6c22 100644 --- a/src/handle_event.cpp +++ b/src/handle_event.cpp @@ -16,11 +16,11 @@ #include "handle_event.hpp" +#include "Canvas.hpp" +#include "CanvasModule.hpp" +#include "CanvasPort.hpp" +#include "Event.hpp" #include "Patchage.hpp" -#include "PatchageCanvas.hpp" -#include "PatchageEvent.hpp" -#include "PatchageModule.hpp" -#include "PatchagePort.hpp" PATCHAGE_DISABLE_FMT_WARNINGS #include @@ -83,8 +83,8 @@ public: void operator()(const ConnectionEvent& event) { - PatchagePort* port_1 = _patchage.canvas()->find_port(event.tail); - PatchagePort* port_2 = _patchage.canvas()->find_port(event.head); + CanvasPort* port_1 = _patchage.canvas()->find_port(event.tail); + CanvasPort* port_2 = _patchage.canvas()->find_port(event.head); if (!port_1) { _patchage.log().error(fmt::format( @@ -99,8 +99,8 @@ public: void operator()(const DisconnectionEvent& event) { - PatchagePort* port_1 = _patchage.canvas()->find_port(event.tail); - PatchagePort* port_2 = _patchage.canvas()->find_port(event.head); + CanvasPort* port_1 = _patchage.canvas()->find_port(event.tail); + CanvasPort* port_2 = _patchage.canvas()->find_port(event.head); if (!port_1) { _patchage.log().error(fmt::format( @@ -120,7 +120,7 @@ private: } // namespace void -handle_event(Patchage& patchage, const PatchageEvent& event) +handle_event(Patchage& patchage, const Event& event) { EventHandler handler{patchage}; boost::apply_visitor(handler, event); -- cgit v1.2.1