Couple of small C++ correctness changes

This commit is contained in:
Adrian Conlon 2024-01-06 22:05:29 +00:00
parent 69a845e2f4
commit 617abbb450
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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);
}