From f253884934cbdbc16fd9b783a2b115960d11af10 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 10 Mar 2020 12:59:13 +0100 Subject: 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 --- src/pdf/quick/plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/pdf/quick/plugin.cpp') 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 } -- cgit v1.2.3