summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/PineTimeStyle.cpp
diff options
context:
space:
mode:
authorReinhold Gschweicher <pyro4hell@gmail.com>2022-01-29 23:30:03 +0100
committerJF <JF002@users.noreply.github.com>2022-03-03 21:08:45 +0100
commita29e30c1876891e504ad62fb35d3b1be76b175a4 (patch)
treea55b673133cff0b80dee3a70ea80346c2105f24b /src/displayapp/screens/PineTimeStyle.cpp
parent29f0bce46bd531ffa83f3445c0e0d893217aa50d (diff)
Notifications: replace newlines in label-copy because of const char* title
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.
Diffstat (limited to 'src/displayapp/screens/PineTimeStyle.cpp')
0 files changed, 0 insertions, 0 deletions