From c2bf177da68bfe848446d4aa8891f9b35148a9e8 Mon Sep 17 00:00:00 2001 From: Amber Brault Date: Sun, 10 Nov 2024 14:39:25 -0500 Subject: [PATCH] Directly initialize name_string --- Source/Core/Core/PowerPC/PPCSymbolDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp index 85f0627c1930..3026e4a479ad 100644 --- a/Source/Core/Core/PowerPC/PPCSymbolDB.cpp +++ b/Source/Core/Core/PowerPC/PPCSymbolDB.cpp @@ -405,7 +405,7 @@ bool PPCSymbolDB::LoadMap(const Core::CPUThreadGuard& guard, const std::string& // Split the current name string into separate parts, and get the object name // if it exists. const std::vector parts = SplitString(name, '\t'); - const std::string name_string = std::string(StripWhitespace(parts[0])); + const std::string name_string(StripWhitespace(parts[0])); const std::string object_filename_string = parts.size() > 1 ? std::string(StripWhitespace(parts[1])) : "";