summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@theqtcompany.com>2016-03-18 13:59:57 +0100
committerMitch Curtis <mitch.curtis@theqtcompany.com>2016-03-18 14:31:09 +0000
commit767120071bc5934bc428bb58a110d6ba9ebb6efb (patch)
treec52bbeda6b324e6d680f43dc8abba0d74d7b60db
parentbc337cc38c3de83a381bccd098d30c038e6318f9 (diff)
downloadqtquickcontrols-767120071bc5934bc428bb58a110d6ba9ebb6efb.tar.gz
Fix unused variable warnings in static builds
The warnings are a result of b4c13916ec0fd7796acdf0ec5a1db0134479b3f2. Change-Id: I0b6a22d0fb3b7258ebfa905015f13d0474ac5b09 Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
-rw-r--r--src/controls/Private/qquickcontrolsettings.cpp2
-rw-r--r--src/dialogs/plugin.cpp2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/controls/Private/qquickcontrolsettings.cpp b/src/controls/Private/qquickcontrolsettings.cpp
index d60f3b99..32efd332 100644
--- a/src/controls/Private/qquickcontrolsettings.cpp
+++ b/src/controls/Private/qquickcontrolsettings.cpp
@@ -165,6 +165,8 @@ static QString relativeStyleImportPath(QQmlEngine *engine, const QString &styleN
if (!found)
path = ":/QtQuick/Controls/Styles";
#else
+ Q_UNUSED(engine);
+ Q_UNUSED(styleName);
path = ":/qt-project.org/imports/QtQuick/Controls/Styles";
#endif
return path;
diff --git a/src/dialogs/plugin.cpp b/src/dialogs/plugin.cpp
index ddc3fad5..1ab6b581 100644
--- a/src/dialogs/plugin.cpp
+++ b/src/dialogs/plugin.cpp
@@ -235,6 +235,7 @@ protected:
QUrl::fromLocalFile(qmlDir.filePath(QString("Widget%1.qml").arg(qmlName)));
#else
QUrl(QString("qrc:/qt-project.org/imports/QtQuick/Dialogs/Widget%1.qml").arg(qmlName));
+ Q_UNUSED(qmlDir);
#endif
if (qmlRegisterType(dialogQmlPath, uri, versionMajor, versionMinor, qmlName) >= 0) {
qCDebug(lcRegistration) << " registering" << qmlName << " as " << dialogQmlPath;
@@ -257,6 +258,7 @@ protected:
QUrl::fromLocalFile(qmlDir.filePath(QString("Default%1.qml").arg(qmlName)));
#else
QUrl(QString("qrc:/qt-project.org/imports/QtQuick/Dialogs/Default%1.qml").arg(qmlName));
+ Q_UNUSED(qmlDir);
#endif
qCDebug(lcRegistration) << " registering" << qmlName << " as " << dialogQmlPath;
qmlRegisterType(dialogQmlPath, uri, versionMajor, versionMinor, qmlName);