summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFile.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2026-07-29 13:28:58 +1200
committerGitHub <noreply@github.com>2026-07-29 13:28:58 +1200
commit1c10b9e9abde05f2dc484e4f02e44e6e59fdd6ba (patch)
tree1237aeb6fe06b150c93235e4e8d0b42192338e32 /Source/Core/UICommon/GameFile.cpp
parent475f35e2faf1ef297350788f022953c6b31cc833 (diff)
parent08e183d322981c705ba9fc7f4f1476cc7e7e5f23 (diff)
Merge pull request #14738 from tygyh/Replace-concatination-with-stdformat
Replace string concatination with `fmt::format`
Diffstat (limited to 'Source/Core/UICommon/GameFile.cpp')
-rw-r--r--Source/Core/UICommon/GameFile.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/UICommon/GameFile.cpp b/Source/Core/UICommon/GameFile.cpp
index 818cf2b766..c24bb625f1 100644
--- a/Source/Core/UICommon/GameFile.cpp
+++ b/Source/Core/UICommon/GameFile.cpp
@@ -622,7 +622,7 @@ std::string GameFile::GetNetPlayName(const Core::TitleDatabase& title_database)
if (!GetGameID().empty())
info.push_back(GetGameID());
if (GetRevision() != 0)
- info.push_back("Revision " + std::to_string(GetRevision()));
+ info.push_back(fmt::format("Revision {}", GetRevision()));
const std::string name = GetName(title_database);
@@ -635,8 +635,7 @@ std::string GameFile::GetNetPlayName(const Core::TitleDatabase& title_database)
if (disc_number > 1 && !is_numbered_disc)
{
- std::string disc_text = "Disc ";
- info.push_back(disc_text + std::to_string(disc_number));
+ info.push_back(fmt::format("Disc {}", disc_number));
}
if (info.empty())
return name;