瀏覽代碼

Don't use const for non-pointer API parameters

Sam Lantinga 10 月之前
父節點
當前提交
d5fe6dd627
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/SDL3/SDL_test_common.h
  2. 1 1
      src/test/SDL_test_common.c

+ 1 - 1
include/SDL3/SDL_test_common.h

@@ -232,7 +232,7 @@ bool SDLCALL SDLTest_CommonInit(SDLTest_CommonState *state);
  *
  *
  * \returns false if app should quit, true otherwise.
  * \returns false if app should quit, true otherwise.
  */
  */
-bool SDLCALL SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **argv);
+bool SDLCALL SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, int argc, char **argv);
 
 
 /**
 /**
  * Print the details of an event.
  * Print the details of an event.

+ 1 - 1
src/test/SDL_test_common.c

@@ -787,7 +787,7 @@ void SDLTest_CommonLogUsage(SDLTest_CommonState *state, const char *argv0, const
     }
     }
 }
 }
 
 
-bool SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, const int argc, char **argv)
+bool SDLTest_CommonDefaultArgs(SDLTest_CommonState *state, int argc, char **argv)
 {
 {
     int i = 1;
     int i = 1;
     while (i < argc) {
     while (i < argc) {