X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fglsl%2Fs_expression.h;h=642af19b439261a35c51890fd4ee38d5c952d50e;hb=b2265db8e77b531e380c47bb5bf31a3c0aa36e08;hp=795f3fccea78a4f0b7b416add8061a5fc0dbc3d6;hpb=652901e95b4ed406293d0e1fabee857c054119b1;p=mesa.git diff --git a/src/glsl/s_expression.h b/src/glsl/s_expression.h index 795f3fccea7..642af19b439 100644 --- a/src/glsl/s_expression.h +++ b/src/glsl/s_expression.h @@ -57,7 +57,7 @@ public: * Read an S-Expression from the given string. * Advances the supplied pointer to just after the expression read. * - * Any allocation will be performed with 'ctx' as the talloc owner. + * Any allocation will be performed with 'ctx' as the ralloc owner. */ static s_expression *read_expression(void *ctx, const char *&src); @@ -129,7 +129,7 @@ public: void print(); private: - char *str; + const char *str; }; /* Lists of expressions: (expr1 ... exprN) */