gdi32: Constify some variables

Andrew Talbot andrew.talbot at talbotville.com
Mon Oct 11 16:25:15 CDT 2010


Changelog:
    gdi32: Constify some variables.

diff --git a/dlls/gdi32/bidi.c b/dlls/gdi32/bidi.c
index 4ef0e99..297ce86 100644
--- a/dlls/gdi32/bidi.c
+++ b/dlls/gdi32/bidi.c
@@ -198,9 +198,9 @@ static int resolveParagraphs(WORD *types, int cch)
 
     Breaks a paragraph into lines
 
-    Input:  Character count
+    Input:  Array of line break flags
+            Character count
     In/Out: Array of characters
-            Array of line break flags
 
     Returns the count of characters on the first line
 
@@ -209,7 +209,7 @@ static int resolveParagraphs(WORD *types, int cch)
     occurs after the character in pszInput[n]. Breaks before the first
     character are not allowed.
 ------------------------------------------------------------------------*/
-static int resolveLines(LPCWSTR pszInput, BOOL * pbrk, int cch)
+static int resolveLines(LPCWSTR pszInput, const BOOL * pbrk, int cch)
 {
     /* skip characters not of type LS */
     int ich = 0;
@@ -289,14 +289,14 @@ static void resolveWhitespace(int baselevel, const WORD *pcls, BYTE *plevel, int
     Implements the Line-by-Line phases of the Unicode Bidi Algorithm
 
       Input:     Count of characters
+                 Array of character directions
 
     Inp/Out: Input text
-             Array of character directions
              Array of levels
 
 ------------------------------------------------------------------------*/
-static void BidiLines(int baselevel, LPWSTR pszOutLine, LPCWSTR pszLine, WORD * pclsLine,
-                      BYTE * plevelLine, int cchPara, BOOL * pbrk)
+static void BidiLines(int baselevel, LPWSTR pszOutLine, LPCWSTR pszLine, const WORD * pclsLine,
+                      BYTE * plevelLine, int cchPara, const BOOL * pbrk)
 {
     int cchLine = 0;
     int done = 0;



More information about the wine-patches mailing list