Gui: Make variable more local

Eliminate a compiler warning about an unused variable by making the
variable more local to the point-of-use.
This commit is contained in:
Chris Hennes
2025-05-12 10:12:05 -05:00
committed by Kacper Donat
parent dce5d9ce82
commit f0e183b20b

View File

@@ -2688,11 +2688,11 @@ public:
static QCursor makeCursor(QWidget* widget, const QSize& size, const char* svgFile, int hotX, int hotY)
{
qreal pRatio = widget->devicePixelRatioF();
qreal hotXF = hotX;
qreal hotYF = hotY;
#if !defined(Q_OS_WIN32) && !defined(Q_OS_MACOS)
if (qApp->platformName() == QLatin1String("xcb")) {
qreal pRatio = widget->devicePixelRatioF();
hotXF *= pRatio;
hotYF *= pRatio;
}