on xenial help sign in
Add a Q_ASSERT to state that we really don't expect it to be null

as opposed to "we forget to handle the null case"

commita3341511c0e7bd522f7082cedecf6135c985671c authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateFri 29 Nov 2013, 09:21 (13 years ago) parent91af41f
1 file changed+1
plugins/Ubuntu/Gestures/PressedOutsideNotifier.cpp+1
plugins/Ubuntu/Gestures/PressedOutsideNotifier.cpp+1
@@ -84,6 +84,7 @@ void PressedOutsideNotifier::setupOrTearDownEventFiltering()
8484void PressedOutsideNotifier::setupEventFiltering()
8585{
8686 QQuickWindow *currentWindow = window();
87+ Q_ASSERT(currentWindow != nullptr);
8788
8889 if (currentWindow == m_filteredWindow)
8990 return;