[Piglit] [PATCH] glean: Fix indentation.

Vinson Lee vlee at freedesktop.org
Thu Oct 13 21:47:35 UTC 2016


dsurf.cpp: In constructor 'GLEAN::Window::Window(GLEAN::WindowSystem&, GLEAN::DrawingSurfaceConfig&, int, int, int, int)':
dsurf.cpp:153:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (!hWindow)
     ^~
dsurf.cpp:156:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  hDC = GetDC(hWindow);
  ^~~

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/glean/dsurf.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/glean/dsurf.cpp b/tests/glean/dsurf.cpp
index 3683db1..e371084 100644
--- a/tests/glean/dsurf.cpp
+++ b/tests/glean/dsurf.cpp
@@ -150,8 +150,8 @@ legacyMethod:
 		GetModuleHandle(NULL),
 		NULL);
 
-    if (!hWindow)
-        return;
+	if (!hWindow)
+		return;
 
 	hDC = GetDC(hWindow);
 
-- 
2.10.1



More information about the Piglit mailing list