From 66cacbd0e04ea1589fe4d695d84f1cc40a33481d Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 18 Jul 2021 11:28:18 -0400 Subject: [PATCH] Be overt about the type being supplied. --- Components/6522/6522.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Components/6522/6522.hpp b/Components/6522/6522.hpp index 71506b8a4..f86bbfe62 100644 --- a/Components/6522/6522.hpp +++ b/Components/6522/6522.hpp @@ -88,9 +88,9 @@ class IRQDelegatePortHandler: public PortHandler { Consumers should derive their own curiously-recurring-template-pattern subclass, implementing bus communications as required. */ -template class MOS6522: public MOS6522Storage { +template class MOS6522: public MOS6522Storage { public: - MOS6522(T &bus_handler) noexcept : bus_handler_(bus_handler) {} + MOS6522(BusHandlerT &bus_handler) noexcept : bus_handler_(bus_handler) {} MOS6522(const MOS6522 &) = delete; /*! Sets a register value. */ @@ -100,7 +100,7 @@ template class MOS6522: public MOS6522Storage { uint8_t read(int address); /*! @returns the bus handler. */ - T &bus_handler(); + BusHandlerT &bus_handler(); /// Sets the input value of line @c line on port @c port. void set_control_line_input(Port port, Line line, bool value); @@ -123,7 +123,7 @@ template class MOS6522: public MOS6522Storage { void shift_in(); void shift_out(); - T &bus_handler_; + BusHandlerT &bus_handler_; HalfCycles time_since_bus_handler_call_; void access(int address);