From 3ddd0fca0cdc17e2113f066d74a44c3ea314f617 Mon Sep 17 00:00:00 2001 From: jdolan Date: Sun, 7 Jul 2013 09:53:55 -0400 Subject: [PATCH] Fix a few more char casts. --- plugins/spritemodel/plugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/spritemodel/plugin.cpp b/plugins/spritemodel/plugin.cpp index 5d7766dd..e73fd988 100644 --- a/plugins/spritemodel/plugin.cpp +++ b/plugins/spritemodel/plugin.cpp @@ -153,10 +153,10 @@ static const char *PLUGIN_COMMANDS = "About..."; static const char *PLUGIN_ABOUT = "Sprite Model loading module v0.2 for GTKRadiant\n\n" "By Hydra!"; -char *supportedmodelformats[] = {"spr","bmp","tga","jpg","hlw",NULL}; // NULL is list delimiter +const char *supportedmodelformats[] = {"spr","bmp","tga","jpg","hlw",NULL}; // NULL is list delimiter static void add_model_apis( CSynapseClient& client ){ - char **ext; + const char **ext; for ( ext = supportedmodelformats; *ext != NULL; ext++ ) { client.AddAPI( MODEL_MAJOR, *ext, sizeof( _QERPlugModelTable ) ); @@ -164,7 +164,7 @@ static void add_model_apis( CSynapseClient& client ){ } static bool model_is_supported( const char* extension ){ - char **ext; + const char **ext; for ( ext = supportedmodelformats; *ext != NULL; ext++ ) { if ( stricmp( extension,*ext ) == 0 ) { @@ -175,7 +175,7 @@ static bool model_is_supported( const char* extension ){ } void init_filetypes(){ - char **ext; + const char **ext; for ( ext = supportedmodelformats; *ext != NULL; ext++ ) { GetFileTypeRegistry()->addType( MODEL_MAJOR, filetype_t( "sprite", *ext ) );