Andrew Ziem : gdi: Constify data.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 25 04:16:40 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 122b80030f9115da738b7fbfb47dde3d80d22923
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=122b80030f9115da738b7fbfb47dde3d80d22923

Author: Andrew Ziem <ahziem1 at mailbolt.com>
Date:   Wed May 24 07:58:57 2006 -0600

gdi: Constify data.

---

 dlls/gdi/dib.c           |    8 ++++----
 dlls/gdi/freetype.c      |    2 +-
 dlls/gdi/tests/palette.c |    2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/gdi/dib.c b/dlls/gdi/dib.c
index 3ba389a..547159a 100644
--- a/dlls/gdi/dib.c
+++ b/dlls/gdi/dib.c
@@ -421,7 +421,7 @@ UINT WINAPI GetDIBColorTable( HDC hdc, U
    NB. RGBQUAD and PALETTEENTRY have different orderings of red, green
    and blue - sigh */
 
-static RGBQUAD EGAColorsQuads[16] = {
+static const RGBQUAD EGAColorsQuads[16] = {
 /* rgbBlue, rgbGreen, rgbRed, rgbReserved */
     { 0x00, 0x00, 0x00, 0x00 },
     { 0x00, 0x00, 0x80, 0x00 },
@@ -441,7 +441,7 @@ static RGBQUAD EGAColorsQuads[16] = {
     { 0xff, 0xff, 0xff, 0x00 }
 };
 
-static RGBTRIPLE EGAColorsTriples[16] = {
+static const RGBTRIPLE EGAColorsTriples[16] = {
 /* rgbBlue, rgbGreen, rgbRed */
     { 0x00, 0x00, 0x00 },
     { 0x00, 0x00, 0x80 },
@@ -461,7 +461,7 @@ static RGBTRIPLE EGAColorsTriples[16] = 
     { 0xff, 0xff, 0xff }
 };
 
-static RGBQUAD DefLogPaletteQuads[20] = { /* Copy of Default Logical Palette */
+static const RGBQUAD DefLogPaletteQuads[20] = { /* Copy of Default Logical Palette */
 /* rgbBlue, rgbGreen, rgbRed, rgbReserved */
     { 0x00, 0x00, 0x00, 0x00 },
     { 0x00, 0x00, 0x80, 0x00 },
@@ -485,7 +485,7 @@ static RGBQUAD DefLogPaletteQuads[20] = 
     { 0xff, 0xff, 0xff, 0x00 }
 };
 
-static RGBTRIPLE DefLogPaletteTriples[20] = { /* Copy of Default Logical Palette */
+static const RGBTRIPLE DefLogPaletteTriples[20] = { /* Copy of Default Logical Palette */
 /* rgbBlue, rgbGreen, rgbRed */
     { 0x00, 0x00, 0x00 },
     { 0x00, 0x00, 0x80 },
diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c
index 62b55ce..6bbf4f8 100644
--- a/dlls/gdi/freetype.c
+++ b/dlls/gdi/freetype.c
@@ -319,7 +319,7 @@ static const WCHAR FixedSys_Value[] = {'
 static const WCHAR System_Value[] = {'F','O','N','T','S','.','F','O','N','\0'};
 static const WCHAR OEMFont_Value[] = {'O','E','M','F','O','N','T','.','F','O','N','\0'};
 
-static const WCHAR *SystemFontValues[4] = {
+static const WCHAR const *SystemFontValues[4] = {
     System_Value,
     OEMFont_Value,
     FixedSys_Value,
diff --git a/dlls/gdi/tests/palette.c b/dlls/gdi/tests/palette.c
index eb3f809..9947639 100644
--- a/dlls/gdi/tests/palette.c
+++ b/dlls/gdi/tests/palette.c
@@ -29,7 +29,7 @@ #include "mmsystem.h"
 
 #include "wine/test.h"
 
-static PALETTEENTRY logpalettedata[8] = {
+static const PALETTEENTRY logpalettedata[8] = {
     { 0x10, 0x20, 0x30, PC_NOCOLLAPSE },
     { 0x20, 0x30, 0x40, PC_NOCOLLAPSE },
     { 0x30, 0x40, 0x50, PC_NOCOLLAPSE },




More information about the wine-cvs mailing list