summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFile.cpp
diff options
context:
space:
mode:
authorDr. Dystopia <jonis9898@hotmail.com>2026-07-19 20:30:21 +0200
committerDr. Dystopia <jonis9898@hotmail.com>2026-07-28 12:39:54 +0200
commit08e183d322981c705ba9fc7f4f1476cc7e7e5f23 (patch)
tree1f64ee7d6bfb5038e37fc2256f0a067f3a648700 /Source/Core/UICommon/GameFile.cpp
parentd742aa8b4c4d052f7dceaa39022b1fe3996f1781 (diff)
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;