1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02:00

Add constness to GCChar() input and switch position of asterisk

I personally like putting the asterisk with the type, because despite
the language parsing the asterisk as a part of the name, the pointer
part is clearly a part of the return type of the function. Also,
put constness here, to indicate that the input won't be modified inside
the function.
This commit is contained in:
Misa 2021-02-07 13:03:33 -08:00 committed by Ethan Lee
parent 3cd18b337a
commit eea37046ef

View File

@ -4,7 +4,7 @@
#include <SDL.h>
#include <sstream>
static const char *GCChar(SDL_GameControllerButton button)
static const char* GCChar(const SDL_GameControllerButton button)
{
if (button == SDL_CONTROLLER_BUTTON_A)
{