1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-14 04:45:57 +01:00

WPrefs.app: Added const attribute to local string

Now that the WINGs functions are const-correct, it is possible to
set the attribute on the strings to help the compiler.
This commit is contained in:
Christophe CURIS
2013-05-09 17:34:10 +02:00
committed by Carlos R. Mafra
parent 591dc5cd4d
commit a4395c5764
4 changed files with 4 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
#include "WINGsP.h"
/* table to map event types to event masks */
static unsigned long eventMasks[] = {
static const unsigned long eventMasks[] = {
0,
0,
KeyPressMask, /* KeyPress */

View File

@@ -56,7 +56,7 @@ typedef struct W_FontPanel {
#define DEF_WIDTH 320
#define DEF_HEIGHT (DEF_UPPER_HEIGHT+DEF_LOWER_HEIGHT)
static int scalableFontSizes[] = {
static const int scalableFontSizes[] = {
8,
10,
11,