summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2026-11-01 21:09:00 -0600
committerJordan Woyak <jordan.woyak@gmail.com>2026-11-01 21:09:00 -0600
commitfaae54eec7b0b017f5792fb6c9da2fb5143dcecc (patch)
treec1554d63cbad011dc963e4bda385c7be167c286e /Source
parent833d8c05965ac1e2242799d3c9b0e0fadbcbb7f8 (diff)
Core/Debugger: Clean up emplace_back calls with use of "parenthesized initialization of aggregates".
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/Debugger/BranchWatch.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/Core/Debugger/BranchWatch.cpp b/Source/Core/Core/Debugger/BranchWatch.cpp
index 5f5084562c..d26150e1f6 100644
--- a/Source/Core/Core/Debugger/BranchWatch.cpp
+++ b/Source/Core/Core/Debugger/BranchWatch.cpp
@@ -118,9 +118,7 @@ void BranchWatch::Load(const CPUThreadGuard& guard, std::FILE* file)
if (snapshot_metadata.is_selected)
{
- // TODO C++20: Parenthesized initialization of aggregates has bad compiler support.
- m_selection.emplace_back(BranchWatchSelectionValueType{&*kv_iter, is_virtual, condition,
- snapshot_metadata.inspection});
+ m_selection.emplace_back(&*kv_iter, is_virtual, condition, snapshot_metadata.inspection);
}
else if (hits_snapshot != 0)
{
@@ -144,9 +142,7 @@ void BranchWatch::IsolateHasExecuted(const CPUThreadGuard&)
{
if (kv.second.hits_snapshot == 0)
{
- // TODO C++20: Parenthesized initialization of aggregates has bad compiler support.
- m_selection.emplace_back(
- BranchWatchSelectionValueType{&kv, is_virtual, condition, SelectionInspection{}});
+ m_selection.emplace_back(&kv, is_virtual, condition);
kv.second.hits_snapshot = kv.second.total_hits;
}
}