From f9fe25291d8e6ece3ee026df5099add3b5230c84 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Tue, 11 Oct 2022 19:21:51 -0700 Subject: Remove most uses of StringFromFormat in favor of fmt --- Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinQt/Debugger/CodeViewWidget.cpp') 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 #include +#include + #include #include #include @@ -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)); -- cgit v1.2.3