summaryrefslogtreecommitdiffstats
path: root/Panel.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-27 11:46:29 +0100
committercgzones <cgzones@googlemail.com>2020-10-27 18:00:43 +0100
commitac2b07eddd6f0b7c41b84b71653ca90fd301085f (patch)
tree0877120c0d42eed27a7f3d29a9fe79803cdd141f /Panel.c
parent27870bd4deceff8396bbc569927716773b1aea29 (diff)
Avoid some unnecessary casts and mark some not changing variables const
Diffstat (limited to 'Panel.c')
-rw-r--r--Panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Panel.c b/Panel.c
index 782cbdc1..02440d85 100644
--- a/Panel.c
+++ b/Panel.c
@@ -423,7 +423,7 @@ HandlerResult Panel_selectByTyping(Panel* this, int ch) {
for (int try = 0; try < 2; try++) {
len = strlen(buffer);
for (int i = 0; i < size; i++) {
- char* cur = ((ListItem*) Panel_get(this, i))->value;
+ const char* cur = ((ListItem*) Panel_get(this, i))->value;
while (*cur == ' ') cur++;
if (strncasecmp(cur, buffer, len) == 0) {
Panel_setSelected(this, i);

© 2014-2024 Faster IT GmbH | imprint | privacy policy