diff options
author | corvid <corvid@lavabit.com> | 2008-12-22 08:45:53 -0300 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2008-12-22 08:45:53 -0300 |
commit | a821e0e87480e8b812ab5975c1031d5ee5eb2587 (patch) | |
tree | ebd7bb71dc9924fe3ad777211c02b5c3861a604d /src/ui.cc | |
parent | f608cd336bcdb7019499df122dad986f9548a214 (diff) |
Added some const quialifiers.
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]; |