globalshortcut-x11: Drop use of variable for display
This commit is contained in:
parent
7620f9ebbe
commit
354bbf820f
|
@ -75,8 +75,7 @@ Display *X11Display() {
|
||||||
QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface();
|
QPlatformNativeInterface *native = QGuiApplication::platformNativeInterface();
|
||||||
if (!native) return nullptr;
|
if (!native) return nullptr;
|
||||||
|
|
||||||
void *display = native->nativeResourceForIntegration("display");
|
return reinterpret_cast<Display*>(native->nativeResourceForIntegration("display"));
|
||||||
return reinterpret_cast<Display*>(display);
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue