diff options
-rw-r--r-- | dw/style.cc | 8 | ||||
-rw-r--r-- | src/IO/about.c | 2 | ||||
-rw-r--r-- | src/form.cc | 2 | ||||
-rw-r--r-- | src/menu.cc | 2 | ||||
-rw-r--r-- | src/ui.cc | 3 |
5 files changed, 9 insertions, 8 deletions
diff --git a/dw/style.cc b/dw/style.cc index bdb04f25..52092593 100644 --- a/dw/style.cc +++ b/dw/style.cc @@ -570,10 +570,10 @@ void drawBackground (View *view, Rectangle *area, // ---------------------------------------------------------------------- static const char - *roman_I0[] = { "","I","II","III","IV","V","VI","VII","VIII","IX" }, - *roman_I1[] = { "","X","XX","XXX","XL","L","LX","LXX","LXXX","XC" }, - *roman_I2[] = { "","C","CC","CCC","CD","D","DC","DCC","DCCC","CM" }, - *roman_I3[] = { "","M","MM","MMM","MMMM" }; + *const roman_I0[] = { "","I","II","III","IV","V","VI","VII","VIII","IX" }, + *const roman_I1[] = { "","X","XX","XXX","XL","L","LX","LXX","LXXX","XC" }, + *const roman_I2[] = { "","C","CC","CCC","CD","D","DC","DCC","DCCC","CM" }, + *const roman_I3[] = { "","M","MM","MMM","MMMM" }; void strtolower (char *s) { diff --git a/src/IO/about.c b/src/IO/about.c index 27b24f47..03d5057c 100644 --- a/src/IO/about.c +++ b/src/IO/about.c @@ -14,7 +14,7 @@ /* * HTML text for startup screen */ -const char *AboutSplash= +const char *const AboutSplash= "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>\n" "<html>\n" "<head>\n" diff --git a/src/form.cc b/src/form.cc index 219b3b5d..76f2c32b 100644 --- a/src/form.cc +++ b/src/form.cc @@ -342,7 +342,7 @@ void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize) void Html_tag_close_form(DilloHtml *html, int TagIdx) { - static const char *SubmitTag = + static const char *const SubmitTag = "<input type='submit' value='?Submit?' alt='dillo-generated-button'>"; DilloHtmlForm *form; // int i; diff --git a/src/menu.cc b/src/menu.cc index 9b75c422..54babc0b 100644 --- a/src/menu.cc +++ b/src/menu.cc @@ -38,7 +38,7 @@ static DilloUrl *popup_url = NULL; // Weak reference to the popup's bw static BrowserWindow *popup_bw = NULL; // Where to place the filemenu popup -int popup_x, popup_y; +static int popup_x, popup_y; // History popup direction (-1 = back, 1 = forward). static int history_direction = -1; // History popup, list of URL-indexes. @@ -993,7 +993,8 @@ void UI::panel_cb_i() */ void UI::color_change_cb_i() { - static int ncolor = 0, cols[] = {7,17,26,51,140,156,205,206,215,-1}; + const int cols[] = {7,17,26,51,140,156,205,206,215,-1}; + static int ncolor = 0; ncolor = (cols[ncolor+1] < 0) ? 0 : ncolor + 1; CuteColor = cols[ncolor]; |