]> vaikene.ee Git - evaf/blobdiff - src/libs/Plugins/pluginmanager_p.h
Warning fixes and copyright update.
[evaf] / src / libs / Plugins / pluginmanager_p.h
index 1fbdad056648d9210d570eaec35252b2dc991fe6..31cc18c9fd712f7182b528b30e9d369783f84c91 100644 (file)
@@ -1,8 +1,8 @@
 /**
- * @file plugins/pluginmanager_p.h
+ * @file Plugins/pluginmanager_p.h
  * @brief Private implementation of the plugin manager
  *
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
  *
  * This file is part of the eVaf C++ cross-platform application development framework.
  *
@@ -22,6 +22,7 @@
 #include <QObject>
 #include <QSharedData>
 #include <QExplicitlySharedDataPointer>
+#include <QScopedPointer>
 #include <QPluginLoader>
 
 namespace eVaf {
@@ -91,13 +92,6 @@ private: // Methods
      */
     Module * moduleByName(QString const & name) const;
 
-    /**
-     * Loads the Qt plugin
-     * @param Name of the Qt plugin
-     * @return True; false if failed
-     */
-    bool loadQtPlugin(QString const & name) const;
-
 };
 
 /**
@@ -147,7 +141,7 @@ private: // Members
     QString mName;
 
     /// Plugin loader
-    QPluginLoader * mLoader;
+    QScopedPointer<QPluginLoader> mLoader;
 
     /// Plugin's root component
     QObject * mRoot;