QT GLSL Parser: More explicit const char * to char * casts.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user