Correct some more compilation warnings (across the whole EightBit project).

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2018-11-25 19:02:11 +00:00
parent 21a16a3c97
commit e156b1ff1a
10 changed files with 57 additions and 40 deletions
+6 -6
View File
@@ -17,15 +17,15 @@ EightBit::Profiler::Profiler(MOS6502& targetProcessor, Disassembly& disassembler
}
void EightBit::Profiler::Generate() {
StartingOutput.fire(EventArgs());
StartingOutput.fire(EventArgs::empty());
EmitProfileInformation();
StartingOutput.fire(EventArgs());
StartingOutput.fire(EventArgs::empty());
}
void EightBit::Profiler::EmitProfileInformation() {
{
StartingLineOutput.fire(EventArgs());
StartingLineOutput.fire(EventArgs::empty());
// For each memory address
for (int address = 0; address < 0x10000; ++address) {
// If there are any cycles associated
@@ -36,11 +36,11 @@ void EightBit::Profiler::EmitProfileInformation() {
EmitLine.fire(ProfileLineEventArgs(source, cycles));
}
}
FinishedLineOutput.fire(EventArgs());
FinishedLineOutput.fire(EventArgs::empty());
}
{
StartingScopeOutput.fire(EventArgs());
StartingScopeOutput.fire(EventArgs::empty());
for (auto& scopeCycle : scopeCycles) {
auto name = scopeCycle.first;
auto cycles = scopeCycle.second;
@@ -48,7 +48,7 @@ void EightBit::Profiler::EmitProfileInformation() {
auto count = addressCounts[namedAddress];
EmitScope.fire(ProfileScopeEventArgs(name, cycles, count));
}
FinishedScopeOutput.fire(EventArgs());
FinishedScopeOutput.fire(EventArgs::empty());
}
}