summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Debugger/CodeViewWidget.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/CodeViewWidget.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/CodeViewWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
index 76e43d50ad..cdccd40732 100644
--- a/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
+++ b/Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp
@@ -6,6 +6,8 @@
#include <algorithm>
#include <cmath>
+#include <fmt/format.h>
+
#include <QApplication>
#include <QClipboard>
#include <QHeaderView>
@@ -656,7 +658,7 @@ void CodeViewWidget::OnCopyFunction()
for (u32 addr = start; addr != end; addr += 4)
{
const std::string disasm = PowerPC::debug_interface.Disassemble(addr);
- text += StringFromFormat("%08x: ", addr) + disasm + "\r\n";
+ fmt::format_to(std::back_inserter(text), "{:08x}: {}\r\n", addr, disasm);
}
QApplication::clipboard()->setText(QString::fromStdString(text));