mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
GeckoCodeConfig: Amend unnecessary string literals to char literals
Also gets rid of an unnecessary std::string construction in a loop. std::string already has an operator+ overload to prepend characters.
This commit is contained in:
parent
28235b5cb6
commit
0d0e9f626d
@ -114,7 +114,7 @@ static void SaveGeckoCode(std::vector<std::string>& lines, std::vector<std::stri
|
||||
const GeckoCode& gcode)
|
||||
{
|
||||
if (gcode.enabled)
|
||||
enabledLines.push_back("$" + gcode.name);
|
||||
enabledLines.push_back('$' + gcode.name);
|
||||
|
||||
if (!gcode.user_defined)
|
||||
return;
|
||||
@ -129,7 +129,7 @@ static void SaveGeckoCode(std::vector<std::string>& lines, std::vector<std::stri
|
||||
|
||||
// save the notes
|
||||
for (const std::string& note : gcode.notes)
|
||||
lines.push_back(std::string("*") + note);
|
||||
lines.push_back('*' + note);
|
||||
}
|
||||
|
||||
void SaveCodes(IniFile& inifile, const std::vector<GeckoCode>& gcodes)
|
||||
|
Loading…
x
Reference in New Issue
Block a user