aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2008-12-22 08:45:53 -0300
committercorvid <corvid@lavabit.com>2008-12-22 08:45:53 -0300
commita821e0e87480e8b812ab5975c1031d5ee5eb2587 (patch)
treeebd7bb71dc9924fe3ad777211c02b5c3861a604d /src/ui.cc
parentf608cd336bcdb7019499df122dad986f9548a214 (diff)
Added some const quialifiers.
Diffstat (limited to 'src/ui.cc')
-rw-r--r--src/ui.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui.cc b/src/ui.cc
index b47e11cf..9af1b2a4 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -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];