mirror of
https://github.com/AppleWin/AppleWin.git
synced 2026-04-19 07:37:12 +00:00
Various *Name() functions can simply return const std::string& (PR #1049)
This commit is contained in:
@@ -165,19 +165,19 @@ void Snapshot_UpdatePath(void)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
static std::string GetSnapshotUnitApple2Name(void)
|
||||
static const std::string& GetSnapshotUnitApple2Name(void)
|
||||
{
|
||||
static const std::string name("Apple2");
|
||||
return name;
|
||||
}
|
||||
|
||||
static std::string GetSnapshotUnitSlotsName(void)
|
||||
static const std::string& GetSnapshotUnitSlotsName(void)
|
||||
{
|
||||
static const std::string name("Slots");
|
||||
return name;
|
||||
}
|
||||
|
||||
static std::string GetSnapshotUnitMiscName(void)
|
||||
static const std::string& GetSnapshotUnitMiscName(void)
|
||||
{
|
||||
static const std::string name("Miscellaneous");
|
||||
return name;
|
||||
|
||||
Reference in New Issue
Block a user