summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2016-05-10 14:09:59 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2016-05-10 13:55:26 +0000
commit4c06592ad80dc55420c4b9efebae2a39f4ad5542 (patch)
tree393c13c19fcc87fa07b2a23e575f8d137d175527 /src
parent2f595a0178bc5f3c8c0ad5464913c753bbde5e82 (diff)
Fix build on WinRT
a63ca3fa106f4b0f9776bf2004661ef6dec2c0c6 caused a build breakage for WinRT as GetModuleHandleEx does not exist on that platform. Change-Id: I143d9cad5f32d98a4d86292dfa73f94a4acdf305 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/plugin/qlibrary_win.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/plugin/qlibrary_win.cpp b/src/corelib/plugin/qlibrary_win.cpp
index 95e5afa837..46fbba151c 100644
--- a/src/corelib/plugin/qlibrary_win.cpp
+++ b/src/corelib/plugin/qlibrary_win.cpp
@@ -147,7 +147,6 @@ bool QLibraryPrivate::load_sys()
qualifiedFileName = moduleFileName;
else
qualifiedFileName = dir.filePath(moduleFileName);
-#endif // !Q_OS_WINRT
if (loadHints() & QLibrary::PreventUnloadHint) {
// prevent the unloading of this component
@@ -157,7 +156,9 @@ bool QLibraryPrivate::load_sys()
reinterpret_cast<const wchar_t *>(pHnd),
&hmod);
Q_ASSERT(!ok || hmod == pHnd);
+ Q_UNUSED(ok);
}
+#endif // !Q_OS_WINRT
}
return (pHnd != 0);
}