summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2022-10-13 02:18:31 +0200
committerGitHub <noreply@github.com>2022-10-13 02:18:31 +0200
commit304e1e5b9fb6fe839d04a58cafe3e26df412f32d (patch)
treef37db914085967641a755e7f71c74d4606dc5ad9 /Source/Core/DolphinQt/Debugger/CodeWidget.cpp
parenta5fa95adfdef8b45fdbb859af0044b0d1622a680 (diff)
parentae7b14887b076ecf1daf66ff210f86c911556926 (diff)
Merge pull request #11162 from Pokechu22/less-StringFromFormat
Remove most uses of StringFromFormat in favor of fmt
Diffstat (limited to 'Source/Core/DolphinQt/Debugger/CodeWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeWidget.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
index 5f2d04afed..92e068fada 100644
--- a/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeWidget.cpp
@@ -5,6 +5,8 @@
#include <chrono>
+#include <fmt/format.h>
+
#include <QGridLayout>
#include <QGroupBox>
#include <QLabel>
@@ -16,7 +18,6 @@
#include <QWidget>
#include "Common/Event.h"
-#include "Common/StringUtil.h"
#include "Core/Core.h"
#include "Core/Debugger/Debugger_SymbolMap.h"
#include "Core/HW/CPU.h"
@@ -389,7 +390,7 @@ void CodeWidget::UpdateFunctionCalls(const Common::Symbol* symbol)
if (call_symbol)
{
const QString name =
- QString::fromStdString(StringFromFormat("> %s (%08x)", call_symbol->name.c_str(), addr));
+ QString::fromStdString(fmt::format("> {} ({:08x})", call_symbol->name, addr));
if (name.toUpper().indexOf(filter.toUpper()) == -1)
continue;
@@ -413,8 +414,8 @@ void CodeWidget::UpdateFunctionCallers(const Common::Symbol* symbol)
if (caller_symbol)
{
- const QString name = QString::fromStdString(
- StringFromFormat("< %s (%08x)", caller_symbol->name.c_str(), addr));
+ const QString name =
+ QString::fromStdString(fmt::format("< {} ({:08x})", caller_symbol->name, addr));
if (name.toUpper().indexOf(filter.toUpper()) == -1)
continue;