From 2992a0e78a807c7035c5df283b9c67a663735a54 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Wed, 7 Apr 2021 21:36:53 +0100 Subject: [PATCH] Event fire: use default arguments, where possible. Signed-off-by: Adrian Conlon --- LR35902/inc/LR35902.h | 2 +- M6502/src/Profiler.cpp | 12 ++++++------ M6532/src/M6532.cpp | 4 ++-- MC6850/src/MC6850.cpp | Bin 7904 -> 7688 bytes 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/LR35902/inc/LR35902.h b/LR35902/inc/LR35902.h index cfaf6fa..07467b1 100644 --- a/LR35902/inc/LR35902.h +++ b/LR35902/inc/LR35902.h @@ -40,7 +40,7 @@ namespace EightBit { Signal MachineTicked; void tickMachine(const int extra) { for (int i = 0; i < extra; ++i) tickMachine(); } - void tickMachine() { tick(4); MachineTicked.fire(EventArgs::empty()); } + void tickMachine() { tick(4); MachineTicked.fire(); } protected: int execute() final; diff --git a/M6502/src/Profiler.cpp b/M6502/src/Profiler.cpp index c0ee9f2..57b9cc0 100644 --- a/M6502/src/Profiler.cpp +++ b/M6502/src/Profiler.cpp @@ -17,15 +17,15 @@ EightBit::Profiler::Profiler(MOS6502& targetProcessor, Disassembly& disassembler } void EightBit::Profiler::Generate() { - StartingOutput.fire(EventArgs::empty()); + StartingOutput.fire(); EmitProfileInformation(); - StartingOutput.fire(EventArgs::empty()); + StartingOutput.fire(); } void EightBit::Profiler::EmitProfileInformation() { { - StartingLineOutput.fire(EventArgs::empty()); + StartingLineOutput.fire(); // For each memory address for (int address = 0; address < 0x10000; ++address) { // If there are any cycles associated @@ -37,11 +37,11 @@ void EightBit::Profiler::EmitProfileInformation() { EmitLine.fire(event); } } - FinishedLineOutput.fire(EventArgs::empty()); + FinishedLineOutput.fire(); } { - StartingScopeOutput.fire(EventArgs::empty()); + StartingScopeOutput.fire(); for (auto& scopeCycle : scopeCycles) { auto name = scopeCycle.first; auto cycles = scopeCycle.second; @@ -50,7 +50,7 @@ void EightBit::Profiler::EmitProfileInformation() { ProfileScopeEventArgs event(name, cycles, count); EmitScope.fire(event); } - FinishedScopeOutput.fire(EventArgs::empty()); + FinishedScopeOutput.fire(); } } diff --git a/M6532/src/M6532.cpp b/M6532/src/M6532.cpp index 2598837..a9d1bb8 100644 --- a/M6532/src/M6532.cpp +++ b/M6532/src/M6532.cpp @@ -23,7 +23,7 @@ void EightBit::M6532::step() { if (!activated()) return; - Accessing.fire(EventArgs::empty()); + Accessing.fire(); if (lowered(RES())) { reset(); @@ -120,7 +120,7 @@ void EightBit::M6532::step() { } } - Accessed.fire(EventArgs::empty()); + Accessed.fire(); } void EightBit::M6532::reset() { diff --git a/MC6850/src/MC6850.cpp b/MC6850/src/MC6850.cpp index fb8b250d959df67d90bb128336db66c7d5bd306c..3050bfd9588a561d0277a94d89628df4fddb3065 100644 GIT binary patch delta 66 zcmaE0+hMaogLAVFCm;LdON>IBCkU+I1T*raPBDTQlk;TGL1-zx%?o7t82L0AtQmM2 JxEN}|BmfPm6Pf@3 delta 204 zcmeCMd0@LigL5(yqmZx_gB3$6LoP!BLkUAAg9d{pgXZM@oXVShIA5`W6bND{n0%2@ zc(aGV3b20c(v$B=>uolWn!||O1fY_0xMer*ld%D7R=}_x=t64-UIs3PS}+L!6{IYr