From 617abbb450f59d9bff0cf9e6720b1cf1cde99115 Mon Sep 17 00:00:00 2001 From: Adrian Conlon <98398945+AdrianConlon@users.noreply.github.com> Date: Sat, 6 Jan 2024 22:05:29 +0000 Subject: [PATCH] Couple of small C++ correctness changes --- inc/Chip.h | 2 +- inc/Signal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/Chip.h b/inc/Chip.h index f08c842..7b84562 100644 --- a/inc/Chip.h +++ b/inc/Chip.h @@ -66,7 +66,7 @@ namespace EightBit { [[nodiscard]] static constexpr auto promoteNibble(const int value) noexcept { return value << 4; } [[nodiscard]] static constexpr auto demoteNibble(const int value) noexcept { return highNibble(value); } - Chip(const Chip& rhs) + Chip(const Chip& rhs) noexcept : Device(rhs) {} protected: diff --git a/inc/Signal.h b/inc/Signal.h index e566da2..699ba58 100644 --- a/inc/Signal.h +++ b/inc/Signal.h @@ -17,7 +17,7 @@ namespace EightBit { m_delegates.push_back(functor); } - void fire(T& e = EventArgs::empty()) const noexcept { + void fire(T& e = EventArgs::empty()) const { for (auto& delegate : m_delegates) delegate(e); }