make some channels final

This commit is contained in:
Matthew Kennedy 2024-03-01 12:46:39 -08:00
parent 2436e7c105
commit a85e6c777d
4 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@
#endif
class CanTsChannel : public TsChannelBase {
class CanTsChannel final : public TsChannelBase {
public:
CanTsChannel() : TsChannelBase("CAN") {

View File

@ -85,7 +85,7 @@ public:
#if HAL_USE_SERIAL
// This class implements a ChibiOS Serial Driver
class SerialTsChannel : public SerialTsChannelBase {
class SerialTsChannel final : public SerialTsChannelBase {
public:
SerialTsChannel(SerialDriver& driver) : SerialTsChannelBase("Serial"), m_driver(&driver) { }
@ -102,7 +102,7 @@ private:
#if HAL_USE_UART
// This class implements a ChibiOS UART Driver
class UartTsChannel : public SerialTsChannelBase {
class UartTsChannel final : public SerialTsChannelBase {
public:
UartTsChannel(UARTDriver& driver) : SerialTsChannelBase("UART"), m_driver(&driver) { }

View File

@ -25,7 +25,7 @@ static void do_connection() {
connectionSocket = lwip_accept(listenerSocket, (sockaddr*)&remote, &size);
}
class EthernetChannel : public TsChannelBase {
class EthernetChannel final : public TsChannelBase {
public:
EthernetChannel()
: TsChannelBase("Ethernet")

View File

@ -12,7 +12,7 @@ static_assert(SERIAL_USB_BUFFERS_SIZE >= BLOCKING_FACTOR + 10);
extern SerialUSBDriver EFI_CONSOLE_USB_DEVICE;
class UsbChannel : public TsChannelBase {
class UsbChannel final : public TsChannelBase {
public:
UsbChannel(SerialUSBDriver& driver)
: TsChannelBase("USB"), m_channel(reinterpret_cast<BaseChannel*>(&driver))