From 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 20:23:44 +1000 Subject: The Formatting String Catastrophe --- source/json_tool/editor_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/json_tool/editor_gui.cpp') diff --git a/source/json_tool/editor_gui.cpp b/source/json_tool/editor_gui.cpp index d533392..5b52e55 100644 --- a/source/json_tool/editor_gui.cpp +++ b/source/json_tool/editor_gui.cpp @@ -117,7 +117,7 @@ void JsonEditor::displayCurrentFile() { String file = m_files.get(m_fileIndex); size_t progress = (m_fileIndex + 1) * 100 / m_files.size(); - String status = strf("Editing file %s/%s (%s%%): %s", m_fileIndex + 1, m_files.size(), progress, file); + String status = strf("Editing file {}/{} ({}%): {}", m_fileIndex + 1, m_files.size(), progress, file); m_statusLabel->setText(status.utf8Ptr()); m_backButton->setEnabled(m_fileIndex != 0); -- cgit v1.2.3