mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Pass input of UtilityClass::GCString() by const reference
This avoids an unnecessary copy of the input std::vector, since we don't need to modify it for anything. This cuts down on unnecessary memory operations.
This commit is contained in:
@@ -39,7 +39,7 @@ public:
|
||||
|
||||
static int Int(const char* str, int fallback = 0);
|
||||
|
||||
static std::string GCString(std::vector<SDL_GameControllerButton> buttons);
|
||||
static std::string GCString(const std::vector<SDL_GameControllerButton>& buttons);
|
||||
|
||||
std::string twodigits(int t);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user