GUI: Const-correctness
Jeffrey Pfau jeffrey@endrift.com
Sun, 21 Aug 2016 03:17:12 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/util/gui/font-metrics.c
→
src/util/gui/font-metrics.c
@@ -5,7 +5,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "util/gui/font.h" -struct GUIFontGlyphMetric defaultFontMetrics[128] = { +const struct GUIFontGlyphMetric defaultFontMetrics[128] = { { 0, 0, { 0, 0, 0, 0 }}, // 0x00 { 0, 0, { 0, 0, 0, 0 }}, // 0x01 { 0, 0, { 0, 0, 0, 0 }}, // 0x02@@ -136,7 +136,7 @@ { 10, 5, { 5, 3, 6, 3 }}, // 0x7E "}"
{ 0, 0, { 0, 0, 0, 0 }}, // 0x7F }; -struct GUIIconMetric defaultIconMetrics[] = { +const struct GUIIconMetric defaultIconMetrics[] = { [GUI_ICON_BATTERY_FULL] = { 0, 0, 32, 16 }, [GUI_ICON_BATTERY_HIGH] = { 32, 0, 32, 16 }, [GUI_ICON_BATTERY_HALF] = { 64, 0, 32, 16 },