aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/interface-gtk/interface.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-18 01:12:45 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-18 01:12:45 +0300
commit45b9dea901cec7045be1a98f61d48d41dc965a9f (patch)
treed3d09c2340f815ae17820ce46fc677f8d9c5d6d2 /src/interface-gtk/interface.c
parent3a2583e918bcc805fe860252f8a520fc2f9b26ce (diff)
downloadsciteco-45b9dea901cec7045be1a98f61d48d41dc965a9f.tar.gz
make some array declarations real constants
* `static const char *p = "FOO"` is not a true constant since the variable p can still be changed. It has to be declared as `static const char *const p = "FOO"`, so that the pointer itself is constant. * In case of string constants, it's easier however to use `static const char p[] = "FOO"`.
Diffstat (limited to 'src/interface-gtk/interface.c')
-rw-r--r--src/interface-gtk/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface-gtk/interface.c b/src/interface-gtk/interface.c
index b2316bc..973225e 100644
--- a/src/interface-gtk/interface.c
+++ b/src/interface-gtk/interface.c
@@ -1224,7 +1224,7 @@ teco_interface_event_loop(GError **error)
* This is not necessary on Windows since the icon included
* as a resource will be used by default.
*/
- static const gchar *icon_files[] = {
+ static const gchar *const icon_files[] = {
"sciteco-48.png", "sciteco-32.png", "sciteco-16.png"
};
GList *icon_list = NULL;