diff options
author | Reinhold Gschweicher <pyro4hell@gmail.com> | 2022-01-29 23:30:03 +0100 |
---|---|---|
committer | JF <JF002@users.noreply.github.com> | 2022-03-03 21:08:45 +0100 |
commit | a29e30c1876891e504ad62fb35d3b1be76b175a4 (patch) | |
tree | a55b673133cff0b80dee3a70ea80346c2105f24b /src/displayapp/icons/battery/os_batterycharging_070.png | |
parent | 29f0bce46bd531ffa83f3445c0e0d893217aa50d (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/icons/battery/os_batterycharging_070.png')
0 files changed, 0 insertions, 0 deletions