From aca0f646b367fc0418fe4ebb697543ce9db65680 Mon Sep 17 00:00:00 2001 From: JailDoctor Date: Sat, 8 May 2021 18:39:37 +0200 Subject: [PATCH] Set char* parameters to const to prevent warnings --- jsound.h | 2 +- modulesequence.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jsound.h b/jsound.h index 47386ee..88ed34e 100644 --- a/jsound.h +++ b/jsound.h @@ -1,5 +1,5 @@ #pragma once -#include "SDL_mixer.h" +#include typedef Mix_Chunk JS_Sound; diff --git a/modulesequence.cpp b/modulesequence.cpp index 2a8f385..7a47680 100644 --- a/modulesequence.cpp +++ b/modulesequence.cpp @@ -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; JG_SetUpdateTicks(10); @@ -118,7 +118,7 @@ void ModuleSequence::ShowText(int x, int y, int color, int speed, char * text1, // mod 35 // A (65) = 23 -> char - 42 - // Special chars: ( ) ¡ ' - : ! . + // Special chars: ( ) � ' - : ! . // [ \ ] ^ _ ` a b int tamany_text1 = strlen(text1);