From 56ce1ec6e8ca4967de7ea1fe84bb1c4f79e1d36b Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 11 May 2022 21:25:38 -0400 Subject: [PATCH] No need to subclass. --- .../Mac/Clock SignalTests/68000flamewingTests.mm | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/68000flamewingTests.mm b/OSBindings/Mac/Clock SignalTests/68000flamewingTests.mm index 33cc1a263..30fdee9d6 100644 --- a/OSBindings/Mac/Clock SignalTests/68000flamewingTests.mm +++ b/OSBindings/Mac/Clock SignalTests/68000flamewingTests.mm @@ -46,8 +46,7 @@ using namespace InstructionSet::M68k; NSData *const testData = [NSData dataWithContentsOfURL:testURL]; const uint8_t *bytes = reinterpret_cast(testData.bytes); - struct NoFlowController: public NullFlowController { - } flow_controller; + NullFlowController flow_controller; // Test ABCD. for(int source = 0; source < 256; source++) { @@ -59,7 +58,7 @@ using namespace InstructionSet::M68k; s.l = source; d.l = dest; - perform( + perform( Preinstruction(), s, d, status, flow_controller); [self validate:bytes source:source dest:dest flags:flags result:d.l status:status operation:@"ABCD"]; @@ -78,7 +77,7 @@ using namespace InstructionSet::M68k; s.l = source; d.l = dest; - perform( + perform( Preinstruction(), s, d, status, flow_controller); [self validate:bytes source:source dest:dest flags:flags result:d.l status:status operation:@"SBCD"]; @@ -87,8 +86,6 @@ using namespace InstructionSet::M68k; } } - return; - // Test NBCD. for(int source = 0; source < 256; source++) { for(int flags = 0; flags < 4; flags++) { @@ -97,7 +94,7 @@ using namespace InstructionSet::M68k; CPU::SlicedInt32 s, d; s.l = source; - perform( + perform( Preinstruction(), s, d, status, flow_controller); [self validate:bytes source:source dest:0 flags:flags result:d.l status:status operation:@"NBCD"];