Skip to content

Commit

Permalink
Directly initialize name_string
Browse files Browse the repository at this point in the history
  • Loading branch information
CelestialAmber committed Nov 10, 2024
1 parent 7023307 commit c2bf177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/PPCSymbolDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> 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])) : "";

Expand Down

0 comments on commit c2bf177

Please sign in to comment.