mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-18 20:04:00 +02:00
Store scriptObject in a QPointer in ScriptPlugin
This commit is contained in:
@@ -20,8 +20,11 @@
|
|||||||
#ifndef TOMAHAWK_SCRIPTPLUGIN_H
|
#ifndef TOMAHAWK_SCRIPTPLUGIN_H
|
||||||
#define TOMAHAWK_SCRIPTPLUGIN_H
|
#define TOMAHAWK_SCRIPTPLUGIN_H
|
||||||
|
|
||||||
|
#include "ScriptObject.h"
|
||||||
#include "../DllMacro.h"
|
#include "../DllMacro.h"
|
||||||
|
|
||||||
|
#include <QPointer>
|
||||||
|
|
||||||
namespace Tomahawk {
|
namespace Tomahawk {
|
||||||
|
|
||||||
class ScriptObject;
|
class ScriptObject;
|
||||||
@@ -35,7 +38,7 @@ public:
|
|||||||
ScriptObject* scriptObject() const;
|
ScriptObject* scriptObject() const;
|
||||||
|
|
||||||
protected: // TODO: pimple
|
protected: // TODO: pimple
|
||||||
ScriptObject* m_scriptObject;
|
QPointer< ScriptObject > m_scriptObject;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user