dwrite/tests: Fix indentation warnings on GCC 6.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-08-09 15:59:46 +03:00 committed by Alexandre Julliard
parent db5211d36f
commit 36cce60f8d
3 changed files with 46 additions and 45 deletions

View File

@ -2648,9 +2648,9 @@ if (0) { /* crashes on win10 */
hr = IDWriteFactory_CreateFontFace(factory2, face_type, 1, &file, 0, DWRITE_FONT_SIMULATIONS_NONE, &face2);
todo_wine
ok(hr == S_OK, "got 0x%08x\n", hr);
if (face2)
if (face2) {
IDWriteFontFace_Release(face2);
}
file2 = NULL;
hr = IDWriteFactory_CreateCustomFontFileReference(factory, &fontrsrc, sizeof(HRSRC), &rloader, &file2);
ok(hr == S_OK, "got 0x%08x\n", hr);
@ -4836,8 +4836,9 @@ static void test_GetGdiCompatibleMetrics_face(IDWriteFontFace *face)
expected.subscriptSizeX = round(round(design_metrics1.subscriptSizeX * scale) / scale);
expected.subscriptSizeY = round(round(design_metrics1.subscriptSizeY * scale) / scale);
expected.superscriptPositionX = round(round(design_metrics1.superscriptPositionX * scale) / scale);
if (0) /* this fails for 3 emsizes, Tahoma from [5, 2048] range */
if (0) /* this fails for 3 emsizes, Tahoma from [5, 2048] range */ {
expected.superscriptPositionY = round(round(design_metrics1.superscriptPositionY * scale) / scale);
}
expected.superscriptSizeX = round(round(design_metrics1.superscriptSizeX * scale) / scale);
expected.superscriptSizeY = round(round(design_metrics1.superscriptSizeY * scale) / scale);
expected.hasTypographicMetrics = design_metrics1.hasTypographicMetrics;

View File

@ -4370,9 +4370,9 @@ todo_wine {
ok(scale == 1.0f, "got %f\n", scale);
todo_wine
ok(font != NULL, "got %p\n", font);
if (font)
if (font) {
IDWriteFont_Release(font);
}
/* same latin text, full length */
g_source = strW;
mappedlength = 0;
@ -4387,9 +4387,9 @@ todo_wine {
ok(scale == 1.0f, "got %f\n", scale);
todo_wine
ok(font != NULL, "got %p\n", font);
if (font)
if (font) {
IDWriteFont_Release(font);
}
/* string 'a\x3058b' */
g_source = str2W;
mappedlength = 0;
@ -4404,9 +4404,9 @@ todo_wine {
ok(scale == 1.0f, "got %f\n", scale);
todo_wine
ok(font != NULL, "got %p\n", font);
if (font)
if (font) {
IDWriteFont_Release(font);
}
g_source = str2W;
mappedlength = 0;
scale = 0.0f;