Use Q_UNUSED
This commit is contained in:
@@ -502,6 +502,7 @@ QScreen *OSDPretty::current_screen(const QPoint &pos) const {
|
|||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
|
||||||
screen = QGuiApplication::screenAt(pos);
|
screen = QGuiApplication::screenAt(pos);
|
||||||
#else
|
#else
|
||||||
|
Q_UNUSED(pos)
|
||||||
if (window() && window()->windowHandle()) screen = window()->windowHandle()->screen();
|
if (window() && window()->windowHandle()) screen = window()->windowHandle()->screen();
|
||||||
#endif
|
#endif
|
||||||
if (!screen) screen = QGuiApplication::primaryScreen();
|
if (!screen) screen = QGuiApplication::primaryScreen();
|
||||||
|
|||||||
Reference in New Issue
Block a user