summaryrefslogtreecommitdiffstats
path: root/src/citra_qt
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-12-19 18:37:14 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-12-20 18:05:52 +0100
commit8cd0d9c000e2c3cb072ca001db13f1c12f2a07ea (patch)
treea63fa5e7d4fb57465e07a9d31bcec2506f7e5e21 /src/citra_qt
parentMerge pull request #315 from chinhodado/master (diff)
downloadyuzu-8cd0d9c000e2c3cb072ca001db13f1c12f2a07ea.tar
yuzu-8cd0d9c000e2c3cb072ca001db13f1c12f2a07ea.tar.gz
yuzu-8cd0d9c000e2c3cb072ca001db13f1c12f2a07ea.tar.bz2
yuzu-8cd0d9c000e2c3cb072ca001db13f1c12f2a07ea.tar.lz
yuzu-8cd0d9c000e2c3cb072ca001db13f1c12f2a07ea.tar.xz
yuzu-8cd0d9c000e2c3cb072ca001db13f1c12f2a07ea.tar.zst
yuzu-8cd0d9c000e2c3cb072ca001db13f1c12f2a07ea.zip
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/debugger/graphics_breakpoints.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/citra_qt/debugger/graphics_breakpoints.cpp b/src/citra_qt/debugger/graphics_breakpoints.cpp
index 53394b6e6..469c3e268 100644
--- a/src/citra_qt/debugger/graphics_breakpoints.cpp
+++ b/src/citra_qt/debugger/graphics_breakpoints.cpp
@@ -39,15 +39,16 @@ QVariant BreakPointModel::data(const QModelIndex& index, int role) const
switch (index.column()) {
case 0:
{
- std::map<Pica::DebugContext::Event, QString> map;
- map.insert({Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded")});
- map.insert({Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed")});
- map.insert({Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch")});
- map.insert({Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished primitive batch")});
+ static const std::map<Pica::DebugContext::Event, QString> map = {
+ { Pica::DebugContext::Event::CommandLoaded, tr("Pica command loaded") },
+ { Pica::DebugContext::Event::CommandProcessed, tr("Pica command processed") },
+ { Pica::DebugContext::Event::IncomingPrimitiveBatch, tr("Incoming primitive batch") },
+ { Pica::DebugContext::Event::FinishedPrimitiveBatch, tr("Finished primitive batch") },
+ };
_dbg_assert_(Debug_GPU, map.size() == static_cast<size_t>(Pica::DebugContext::Event::NumEvents));
- return map[event];
+ return (map.find(event) != map.end()) ? map.at(event) : QString();
}
case 1: