# HG changeset patch # User reimar # Date 1200240298 0 # Node ID d5bc3ea810029b72d6188bb31aa0140b4c33a3ab # Parent d4fe6e23283e735a236c16f64386ece27a6d0204 Mark qt default palette tables as const diff -r d4fe6e23283e -r d5bc3ea81002 libmpdemux/qtpalette.h --- a/libmpdemux/qtpalette.h Sun Jan 13 16:00:39 2008 +0000 +++ b/libmpdemux/qtpalette.h Sun Jan 13 16:04:58 2008 +0000 @@ -5,14 +5,14 @@ #ifndef QTPALETTE_H #define QTPALETTE_H -static unsigned char qt_default_palette_4[4 * 4] = { +static const unsigned char qt_default_palette_4[4 * 4] = { 0x5E, 0x65, 0x93, 0x00, 0xFF, 0xFF, 0xFF, 0x00, 0xAB, 0xD0, 0xDF, 0x00, 0x00, 0x00, 0x00, 0x00 }; -static unsigned char qt_default_palette_16[16 * 4] = { +static const unsigned char qt_default_palette_16[16 * 4] = { 0xFF, 0xFB, 0xFF, 0x00, 0xBB, 0xD9, 0xEF, 0x00, 0xB1, 0xC9, 0xE8, 0x00, @@ -31,7 +31,7 @@ 0x00, 0x00, 0x00, 0x00 }; -static unsigned char qt_default_palette_256[256 * 4] = { +static const unsigned char qt_default_palette_256[256 * 4] = { /* 0, 0x00 */ 0xFF, 0xFF, 0xFF, 0x00, /* 1, 0x01 */ 0xCC, 0xFF, 0xFF, 0x00, /* 2, 0x02 */ 0x99, 0xFF, 0xFF, 0x00, @@ -290,7 +290,7 @@ /* 255, 0xFF */ 0x00, 0x00, 0x00, 0x00 }; -static unsigned char qt_default_grayscale_palette_16[16 * 4] = { +static const unsigned char qt_default_grayscale_palette_16[16 * 4] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xEE, 0xEE, 0xEE, 0xEE, 0xDD, 0xDD, 0xDD, 0xDD, @@ -309,7 +309,7 @@ 0x00, 0x00, 0x00, 0x00 }; -static unsigned char qt_default_grayscale_palette_256[256 * 4] = { +static const unsigned char qt_default_grayscale_palette_256[256 * 4] = { /* 0, 0x00 */ 0xFF, 0xFF, 0xFF, 0xFF, /* 1, 0x01 */ 0xFE, 0xFE, 0xFE, 0xFE, /* 2, 0x02 */ 0xFD, 0xFD, 0xFD, 0xFD,