summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeVerifier.cpp
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-12-13 14:02:12 -0800
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2025-03-10 12:38:03 -0700
commit433c6ce0f20e33379985a56b58540197feeeff59 (patch)
treee9a9352cf51bb44612d9fc07c336bdefad467d94 /Source/Core/DiscIO/VolumeVerifier.cpp
parent87496205aa9c75217a715deb34c5fb60f6acbb2a (diff)
GCC: Remedy NRVO Fails
Using the `-Wnrvo` flag introduced by GCC 14, I identified a few places where NRVO was clearly intended, but is fumbled.
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeVerifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp
index 18ef37102e..c68b06a900 100644
--- a/Source/Core/DiscIO/VolumeVerifier.cpp
+++ b/Source/Core/DiscIO/VolumeVerifier.cpp
@@ -697,7 +697,7 @@ std::string VolumeVerifier::GetPartitionName(std::optional<u32> type) const
// (French), Clásicos (Spanish), Capolavori (Italian), 클래식 게임 체험판 (Korean).
// If your language is not one of the languages above, consider leaving the string untranslated
// so that people will recognize it as the name of the game mode.
- name = Common::FmtFormatT("{0} (Masterpiece)", name);
+ return Common::FmtFormatT("{0} (Masterpiece)", name);
}
return name;
}