Various *Name() functions can simply return const std::string& (PR #1049)

This commit is contained in:
Kelvin Lee
2022-03-01 07:52:18 +11:00
committed by GitHub
parent d2004553f1
commit 80f3eaeb91
39 changed files with 53 additions and 53 deletions
+1 -1
View File
@@ -936,7 +936,7 @@ void JoyportControl(const UINT uControl)
#define SS_YAML_KEY_JOY1TRIMY "Joystick1 TrimY"
#define SS_YAML_KEY_PDL_INACTIVE_CYCLE "Paddle%1d Inactive Cycle"
static std::string JoyGetSnapshotStructName(void)
static const std::string& JoyGetSnapshotStructName(void)
{
static const std::string name("Joystick");
return name;