QT GLSL Parser: More explicit const char * to char * casts.

This commit is contained in:
OBattler
2025-03-10 18:00:28 +01:00
parent df85868e00
commit daf6e242ef

View File

@@ -101,11 +101,11 @@ static char *load_file(const char *fn) {
static void strip_lines(const char *program, const char *starts_with) { static void strip_lines(const char *program, const char *starts_with) {
/* strip parameters */ /* strip parameters */
char *ptr = strstr(program, starts_with); char *ptr = (char *) strstr(program, starts_with);
while (ptr) { while (ptr != nullptr) {
while (*ptr != '\n' && *ptr != '\0') while (*ptr != '\n' && *ptr != '\0')
*ptr++ = ' '; *ptr++ = ' ';
ptr = strstr(program, starts_with); ptr = (char *) strstr(program, starts_with);
} }
} }