mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01: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:
parent
3cd18b337a
commit
eea37046ef
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
#include <SDL.h>
|
#include <SDL.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
static const char *GCChar(SDL_GameControllerButton button)
|
static const char* GCChar(const SDL_GameControllerButton button)
|
||||||
{
|
{
|
||||||
if (button == SDL_CONTROLLER_BUTTON_A)
|
if (button == SDL_CONTROLLER_BUTTON_A)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue