|
@@ -145,7 +145,7 @@ public:
|
145
|
145
|
// Code is found in the string. If not found, value_ptr is unchanged.
|
146
|
146
|
// This allows "if (seen('A')||seen('B'))" to use the last-found value.
|
147
|
147
|
static bool seen(const char c) {
|
148
|
|
- const char *p = strchr(command_args, c);
|
|
148
|
+ char *p = strchr(command_args, c);
|
149
|
149
|
const bool b = !!p;
|
150
|
150
|
if (b) value_ptr = valid_float(&p[1]) ? &p[1] : (char*)NULL;
|
151
|
151
|
return b;
|