summaryrefslogtreecommitdiffstats
path: root/tests/shared/nativewindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shared/nativewindow.h')
-rw-r--r--tests/shared/nativewindow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shared/nativewindow.h b/tests/shared/nativewindow.h
index 957f84f9494..6acb9b85d59 100644
--- a/tests/shared/nativewindow.h
+++ b/tests/shared/nativewindow.h
@@ -238,7 +238,7 @@ WId NativeWindow::parentWinId() const
xcb_query_tree_reply_t *tree = xcb_query_tree_reply(
connection, xcb_query_tree(connection, m_handle), nullptr);
const auto cleanup = qScopeGuard([&]{ free(tree); });
- return tree ? tree->parent : 0;
+ return tree->parent;
}
bool NativeWindow::isParentOf(WId childWinId)