From 48d726b37e046bf6c84349d5239c7d24272488ac Mon Sep 17 00:00:00 2001 From: Alessandro Portale <alessandro.portale@nokia.com> Date: Mon, 1 Nov 2010 19:25:19 +0100 Subject: [PATCH] Remove compile warning on Symbian. Reviewed-By: TrustMe --- share/qtcreator/templates/mobileapp/mainwindow.cpp | 1 + .../qmlapp/qmlapplicationviewer/qmlapplicationviewer.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/share/qtcreator/templates/mobileapp/mainwindow.cpp b/share/qtcreator/templates/mobileapp/mainwindow.cpp index a7aa0badeff..aad030d8aa1 100644 --- a/share/qtcreator/templates/mobileapp/mainwindow.cpp +++ b/share/qtcreator/templates/mobileapp/mainwindow.cpp @@ -42,6 +42,7 @@ void MainWindow::setOrientation(ScreenOrientation orientation) if (appUi) appUi->SetOrientationL(uiOrientation); ); + Q_UNUSED(error) #else // ORIENTATIONLOCK qWarning("'ORIENTATIONLOCK' needs to be defined on Symbian when locking the orientation."); #endif // ORIENTATIONLOCK diff --git a/share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.cpp b/share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.cpp index 03b9820fa46..5fdc94c8cd8 100644 --- a/share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.cpp +++ b/share/qtcreator/templates/qmlapp/qmlapplicationviewer/qmlapplicationviewer.cpp @@ -99,6 +99,7 @@ void QmlApplicationViewer::setOrientation(ScreenOrientation orientation) if (appUi) appUi->SetOrientationL(uiOrientation); ); + Q_UNUSED(error) #else // ORIENTATIONLOCK qWarning("'ORIENTATIONLOCK' needs to be defined on Symbian when locking the orientation."); #endif // ORIENTATIONLOCK -- GitLab