From e6c98287cc0d05ea0d8370f1537ccc5171537091 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 29 Jun 2012 11:09:11 +0200 Subject: [PATCH] QQnxWindow: properly scope a local variable Change-Id: I71f1052f614f4e926acf2c2b76963770f7b35c96 Reviewed-by: Thomas McGuire Reviewed-by: Sean Harmer --- src/plugins/platforms/qnx/qqnxwindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/platforms/qnx/qqnxwindow.cpp b/src/plugins/platforms/qnx/qqnxwindow.cpp index 3344a87f123..1dfb45d7ff4 100644 --- a/src/plugins/platforms/qnx/qqnxwindow.cpp +++ b/src/plugins/platforms/qnx/qqnxwindow.cpp @@ -214,11 +214,8 @@ void QQnxWindow::setGeometry(const QRect &rect) QWindowSystemInterface::handleSynchronousGeometryChange(window(), rect); // Now move all children. - QPoint offset; if (!oldGeometry.isEmpty()) { - offset = rect.topLeft(); - offset -= oldGeometry.topLeft(); - + const QPoint offset = rect.topLeft() - oldGeometry.topLeft(); Q_FOREACH (QQnxWindow *childWindow, m_childWindows) childWindow->setOffset(offset); }