mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 03:38:54 +00:00
Remove most uses of StringFromFormat in favor of fmt
This commit is contained in:
parent
a5fa95adfd
commit
f9fe25291d
12 changed files with 105 additions and 89 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue