gdi32/tests: Constify a character string.
This commit is contained in:
parent
9f2ebd7736
commit
cc97a2385a
|
@ -2132,18 +2132,18 @@ static void test_GetOutlineTextMetrics(void)
|
||||||
ReleaseDC(0, hdc);
|
ReleaseDC(0, hdc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void testJustification(HDC hdc, PSTR str, RECT *clientArea)
|
static void testJustification(HDC hdc, PCSTR str, RECT *clientArea)
|
||||||
{
|
{
|
||||||
INT y,
|
INT y,
|
||||||
breakCount,
|
breakCount,
|
||||||
areaWidth = clientArea->right - clientArea->left,
|
areaWidth = clientArea->right - clientArea->left,
|
||||||
nErrors = 0, e;
|
nErrors = 0, e;
|
||||||
PSTR pFirstChar, pLastChar;
|
const char *pFirstChar, *pLastChar;
|
||||||
SIZE size;
|
SIZE size;
|
||||||
TEXTMETRICA tm;
|
TEXTMETRICA tm;
|
||||||
struct err
|
struct err
|
||||||
{
|
{
|
||||||
char *start;
|
const char *start;
|
||||||
int len;
|
int len;
|
||||||
int GetTextExtentExPointWWidth;
|
int GetTextExtentExPointWWidth;
|
||||||
} error[20];
|
} error[20];
|
||||||
|
@ -2220,7 +2220,7 @@ static void test_SetTextJustification(void)
|
||||||
SIZE size, expect;
|
SIZE size, expect;
|
||||||
int i;
|
int i;
|
||||||
WORD indices[2];
|
WORD indices[2];
|
||||||
static char testText[] =
|
static const char testText[] =
|
||||||
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
|
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
|
||||||
"eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut "
|
"eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut "
|
||||||
"enim ad minim veniam, quis nostrud exercitation ullamco laboris "
|
"enim ad minim veniam, quis nostrud exercitation ullamco laboris "
|
||||||
|
|
Loading…
Reference in New Issue