summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2020-03-10 12:59:13 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2020-03-11 08:31:36 +0100
commitf253884934cbdbc16fd9b783a2b115960d11af10 (patch)
tree4e50845bc5e38c0f089d213b289a212c94b3d743
parent60663c79a1f7c0642c71f64c2415deca18d8207e (diff)
PDF quick plugin: fix warning about unused engine arg on static builds
The build for iOS is static. Change-Id: I3e6c13c920861a2a6bf0079e53e76322bb93935f Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r--src/pdf/quick/plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pdf/quick/plugin.cpp b/src/pdf/quick/plugin.cpp
index bb68a817e..670fe0bf9 100644
--- a/src/pdf/quick/plugin.cpp
+++ b/src/pdf/quick/plugin.cpp
@@ -71,7 +71,9 @@ public:
void initializeEngine(QQmlEngine *engine, const char *uri) override {
Q_UNUSED(uri);
-#ifndef QT_STATIC
+#ifdef QT_STATIC
+ Q_UNUSED(engine);
+#else
engine->addImportPath(QStringLiteral("qrc:/"));
#endif
}