Set char* parameters to const to prevent warnings

This commit is contained in:
2021-05-08 18:39:37 +02:00
parent 826bdda3c6
commit aca0f646b3
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
#pragma once #pragma once
#include "SDL_mixer.h" #include <SDL2/SDL_mixer.h>
typedef Mix_Chunk JS_Sound; typedef Mix_Chunk JS_Sound;

View File

@@ -110,7 +110,7 @@ void ModuleSequence::FadeOut() {
} }
} }
void ModuleSequence::ShowText(int x, int y, int color, int speed, char * text1, char * text2, char * text3) { void ModuleSequence::ShowText(int x, int y, int color, int speed, const char * text1, const char * text2, const char * text3) {
bool eixir = false; bool eixir = false;
JG_SetUpdateTicks(10); JG_SetUpdateTicks(10);
@@ -118,7 +118,7 @@ void ModuleSequence::ShowText(int x, int y, int color, int speed, char * text1,
// mod 35 // mod 35
// A (65) = 23 -> char - 42 // A (65) = 23 -> char - 42
// Special chars: ( ) <20> ' - : ! . // Special chars: ( ) <20> ' - : ! .
// [ \ ] ^ _ ` a b // [ \ ] ^ _ ` a b
int tamany_text1 = strlen(text1); int tamany_text1 = strlen(text1);