a29e30c187
The variable `title` is defined as `const char*`, which means, that `strchr()` returns a `const char*` as well according to https://www.cplusplus.com/reference/cstring/strchr/ But in the same line the return value is assigned to a non-const `char*`, which shouldn't be allowed (error with `-pedantic`). Because the `lv_label` creates an internal copy of the title sting, just modify that one instead and replace newline in the copied string. |
||
---|---|---|
.. | ||
fonts | ||
icons | ||
screens | ||
Apps.h | ||
Colors.cpp | ||
Colors.h | ||
DisplayApp.cpp | ||
DisplayApp.h | ||
DisplayAppRecovery.cpp | ||
DisplayAppRecovery.h | ||
DummyLittleVgl.h | ||
LittleVgl.cpp | ||
LittleVgl.h | ||
lv_pinetime_theme.c | ||
lv_pinetime_theme.h | ||
Messages.h | ||
TouchEvents.h |