summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qlibrary.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-02 02:18:57 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-05-12 23:04:57 +0200
commitcdd6a1f1384a43dbf2627c4d1cade6508e5762bb (patch)
tree073b6de6b40b4dd0637d7758af3e28d88ec4819a /src/corelib/plugin/qlibrary.cpp
parenta3d7028a0e924184143380f83b5744f0f38a5d53 (diff)
QLibrary: fix some implicit QFlags->int conversions
Either be explicit, or just use QFlags directly. Change-Id: I18cbea4eaa1a0a4bce7665b735e7d785f7a196b2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/plugin/qlibrary.cpp')
-rw-r--r--src/corelib/plugin/qlibrary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp
index c625269ada..adac2f41da 100644
--- a/src/corelib/plugin/qlibrary.cpp
+++ b/src/corelib/plugin/qlibrary.cpp
@@ -500,7 +500,7 @@ inline void QLibraryStore::releaseLibrary(QLibraryPrivate *lib)
QLibraryPrivate::QLibraryPrivate(const QString &canonicalFileName, const QString &version, QLibrary::LoadHints loadHints)
: fileName(canonicalFileName), fullVersion(version), pluginState(MightBeAPlugin)
{
- loadHintsInt.storeRelaxed(loadHints);
+ loadHintsInt.storeRelaxed(loadHints.toInt());
if (canonicalFileName.isEmpty())
errorString = QLibrary::tr("The shared library was not found.");
}
@@ -521,7 +521,7 @@ void QLibraryPrivate::mergeLoadHints(QLibrary::LoadHints lh)
if (pHnd.loadRelaxed())
return;
- loadHintsInt.storeRelaxed(lh);
+ loadHintsInt.storeRelaxed(lh.toInt());
}
QFunctionPointer QLibraryPrivate::resolve(const char *symbol)