Zhenbo Li : wineps.drv: Constify a few pointers.

Alexandre Julliard julliard at winehq.org
Thu Jan 2 13:13:48 CST 2014


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

Author: Zhenbo Li <litimetal at gmail.com>
Date:   Sun Dec 29 13:31:33 2013 +0800

wineps.drv: Constify a few pointers.

---

 dlls/wineps.drv/type1.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/wineps.drv/type1.c b/dlls/wineps.drv/type1.c
index 316bece..58fe11f 100644
--- a/dlls/wineps.drv/type1.c
+++ b/dlls/wineps.drv/type1.c
@@ -63,11 +63,11 @@ enum t1_cmds {
               (DWORD)_x1         )
 
 #ifdef WORDS_BIGENDIAN
-static inline WORD  get_be_word(const void *p)  { return *(WORD*)p; }
-static inline DWORD get_be_dword(const void *p) { return *(DWORD*)p; }
+static inline WORD  get_be_word(const void *p)  { return *(const WORD*)p; }
+static inline DWORD get_be_dword(const void *p) { return *(const DWORD*)p; }
 #else
-static inline WORD  get_be_word(const void *p)  { return RtlUshortByteSwap(*(WORD*)p); }
-static inline DWORD get_be_dword(const void *p) { return RtlUlongByteSwap(*(DWORD*)p); }
+static inline WORD  get_be_word(const void *p)  { return RtlUshortByteSwap(*(const WORD*)p); }
+static inline DWORD get_be_dword(const void *p) { return RtlUlongByteSwap(*(const DWORD*)p); }
 #endif
 
 TYPE1 *T1_download_header(PHYSDEV dev, char *ps_name, RECT *bbox, UINT emsize)
@@ -442,8 +442,8 @@ static BOOL append_complex_glyph(HDC hdc, const BYTE *data, glyph_outline *outli
         }
         else
         {
-            arg1 = *(char*)ptr++;
-            arg2 = *(char*)ptr++;
+            arg1 = *(const char*)ptr++;
+            arg2 = *(const char*)ptr++;
         }
         if(flags & WE_HAVE_A_SCALE)
         {




More information about the wine-cvs mailing list