diff options
Diffstat (limited to 'src/corelib/plugin/qlibrary.h')
-rw-r--r-- | src/corelib/plugin/qlibrary.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/corelib/plugin/qlibrary.h b/src/corelib/plugin/qlibrary.h index 0b37b8b134..135c9bbeed 100644 --- a/src/corelib/plugin/qlibrary.h +++ b/src/corelib/plugin/qlibrary.h @@ -41,6 +41,7 @@ #define QLIBRARY_H #include <QtCore/qobject.h> +#include <QtCore/qtaggedpointer.h> QT_REQUIRE_CONFIG(library); @@ -92,8 +93,12 @@ public: void setLoadHints(LoadHints hints); LoadHints loadHints() const; private: - QLibraryPrivate *d; - bool did_load; + enum LoadStatusTag { + NotLoaded, + Loaded + }; + + QTaggedPointer<QLibraryPrivate, LoadStatusTag> d = nullptr; Q_DISABLE_COPY(QLibrary) }; |