Dmitry Timoshkov : gdi: Add more const qualifiers.

Alexandre Julliard julliard at wine.codeweavers.com
Fri May 26 05:42:13 CDT 2006


Module: wine
Branch: master
Commit: 0a4f4b23cfe1a2f3799589c0ae84a9374520ec44
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=0a4f4b23cfe1a2f3799589c0ae84a9374520ec44

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Fri May 26 13:34:50 2006 +0900

gdi: Add more const qualifiers.

---

 dlls/gdi/freetype.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/gdi/freetype.c b/dlls/gdi/freetype.c
index 6bbf4f8..8317eb1 100644
--- a/dlls/gdi/freetype.c
+++ b/dlls/gdi/freetype.c
@@ -213,7 +213,7 @@ typedef struct tagFace {
 
 typedef struct tagFamily {
     struct list entry;
-    WCHAR *FamilyName;
+    const WCHAR *FamilyName;
     struct list faces;
 } Family;
 
@@ -275,7 +275,7 @@ struct tagGdiFont {
 
 typedef struct {
     struct list entry;
-    WCHAR *font_name;
+    const WCHAR *font_name;
     struct list links;
 } SYSTEM_LINKS;
 
@@ -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 const *SystemFontValues[4] = {
+static const WCHAR * const SystemFontValues[4] = {
     System_Value,
     OEMFont_Value,
     FixedSys_Value,
@@ -348,7 +348,7 @@ static const WCHAR VietnameseW[] = {'V',
 static const WCHAR WesternW[] = {'W','e','s','t','e','r','n','\0'};
 static const WCHAR OEM_DOSW[] = {'O','E','M','/','D','O','S','\0'};
 
-static const WCHAR *ElfScriptsW[32] = { /* these are in the order of the fsCsb[0] bits */
+static const WCHAR * const ElfScriptsW[32] = { /* these are in the order of the fsCsb[0] bits */
     WesternW, /*00*/
     Central_EuropeanW,
     CyrillicW,
@@ -447,7 +447,7 @@ static Face *find_face_from_filename(con
 {
     Family *family;
     Face *face;
-    char *file;
+    const char *file;
     DWORD len = WideCharToMultiByte(CP_UNIXCP, 0, file_name, -1, NULL, 0, NULL, NULL);
     char *file_nameA = HeapAlloc(GetProcessHeap(), 0, len);
     Face *ret = NULL;
@@ -1256,7 +1256,7 @@ static void load_system_fonts(void)
 {
     HKEY hkey;
     WCHAR data[MAX_PATH], windowsdir[MAX_PATH], pathW[MAX_PATH];
-    const WCHAR **value;
+    const WCHAR * const *value;
     DWORD dlen, type;
     static const WCHAR fmtW[] = {'%','s','\\','%','s','\0'};
     char *unixname;




More information about the wine-cvs mailing list