We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e355c commit 92b0a57Copy full SHA for 92b0a57
src/app_component.cpp
@@ -28,7 +28,10 @@ void CLAppComponent::dumpPrefs() {
28
29
int CLAppComponent::readJsonIntVal(jparse_ctx_t *jctx_ptr, const char* token) {
30
int res=0;
31
- if(json_obj_get_int(jctx_ptr, token, &res) == OS_SUCCESS)
+
32
+ char * ptr = const_cast<char *>(token);
33
34
+ if(json_obj_get_int(jctx_ptr, ptr, &res) == OS_SUCCESS)
35
return res;
36
37
return 0;
0 commit comments