Use not_null for WaylandIntegration::showWindowMenu window handle

This commit is contained in:
Ilya Fedin 2023-08-31 14:15:18 +04:00 committed by John Preston
parent 9af842571d
commit dce16a3de2

View file

@ -88,9 +88,7 @@ bool WaylandIntegration::xdgDecorationSupported() {
void WaylandIntegration::showWindowMenu(
not_null<QWidget*> widget,
const QPoint &point) {
const auto window = widget->windowHandle();
Expects(window != nullptr);
const auto window = not_null(widget->windowHandle());
const auto native = qApp->nativeInterface<QWaylandApplication>();
const auto nativeWindow = window->nativeInterface<QWaylandWindow>();
if (!native || !nativeWindow) {