Showing the changes to libraries/script-engine/src/ScriptManager.h (1 of 49 files). Show all
Unified · Split
| @@ -16,10 +16,10 @@ · 15 unmodified lines | |||
| 16 | #include <atomic> | 16 | #include <atomic> |
| 17 | #include <chrono> | 17 | #include <chrono> |
| 18 | #include <functional> | 18 | #include <functional> |
| 19 | #include <memory> | ||
| 19 | #include <unordered_map> | 20 | #include <unordered_map> |
| 20 | #include <mutex> | 21 | #include <mutex> |
| 21 | 22 | ||
| 22 | #include <QtCore/QEnableSharedFromThis> | ||
| 23 | #include <QtCore/QFuture> | 23 | #include <QtCore/QFuture> |
| 24 | #include <QtCore/QHash> | 24 | #include <QtCore/QHash> |
| 25 | #include <QtCore/QObject> | 25 | #include <QtCore/QObject> |
| @@ -54,8 +54,8 @@ static const int DEFAULT_ENTITY_PPS_PER_SCRIPT = 900; · 28 unmodified lines | |||
| 54 | class ScriptEngine; | 54 | class ScriptEngine; |
| 55 | class ScriptEngines; | 55 | class ScriptEngines; |
| 56 | class ScriptManager; | 56 | class ScriptManager; |
| 57 | using ScriptEnginePointer = QSharedPointer<ScriptEngine>; | 57 | using ScriptEnginePointer = std::shared_ptr<ScriptEngine>; |
| 58 | using ScriptManagerPointer = QSharedPointer<ScriptManager>; | 58 | using ScriptManagerPointer = std::shared_ptr<ScriptManager>; |
| 59 | using ScriptValueList = QList<ScriptValue>; | 59 | using ScriptValueList = QList<ScriptValue>; |
| 60 | 60 | ||
| 61 | Q_DECLARE_METATYPE(ScriptManagerPointer) | 61 | Q_DECLARE_METATYPE(ScriptManagerPointer) |
| @@ -137,7 +137,7 @@ public: · 75 unmodified lines | |||
| 137 | * <em>Read-only.</em> | 137 | * <em>Read-only.</em> |
| 138 | * @property {Script.ResourceBuckets} ExternalPaths - External resource buckets. | 138 | * @property {Script.ResourceBuckets} ExternalPaths - External resource buckets. |
| 139 | */ | 139 | */ |
| 140 | class ScriptManager : public QObject, public EntitiesScriptEngineProvider, public QEnableSharedFromThis<ScriptManager> { | 140 | class ScriptManager : public QObject, public EntitiesScriptEngineProvider, public std::enable_shared_from_this<ScriptManager> { |
| 141 | Q_OBJECT | 141 | Q_OBJECT |
| 142 | Q_PROPERTY(QString context READ getContext) | 142 | Q_PROPERTY(QString context READ getContext) |
| 143 | Q_PROPERTY(QString type READ getTypeAsString) | 143 | Q_PROPERTY(QString type READ getTypeAsString) |