]> vaikene.ee Git - evaf/blobdiff - src/libs/Plugins/pluginmanager.h
Mac OS changes and switched to c++11.
[evaf] / src / libs / Plugins / pluginmanager.h
index e56092225030843e3a7be50e38f1ff8e2b207990..91a5b00947db662addc22238846e0dbd2e5fe00e 100644 (file)
@@ -2,7 +2,7 @@
  * @file Plugins/pluginmanager.h
  * @brief Manager for loadable modules (plugins)
  *
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
  *
  * This file is part of the eVaf C++ cross-platform application development framework.
  *
@@ -25,6 +25,7 @@
 
 #include <QObject>
 #include <QString>
+#include <QScopedPointer>
 
 namespace eVaf {
 
@@ -67,6 +68,8 @@ inline QString expandPluginName(QString const & name)
     return "lib" + name + ".so";
 #elif defined Q_OS_CYGWIN
     return "cyg" + name + ".dll";
+#elif defined Q_OS_MACOS
+    return "lib" + name + ".dylib";
 #else
     return name;
 #endif
@@ -129,7 +132,7 @@ signals:
 
 private:
 
-    Internal::PluginManagerPrivate * d;
+    QScopedPointer<Internal::PluginManagerPrivate> d;
 
 };