mirror of
https://github.com/lubosz/overte.git
synced 2025-04-12 14:52:47 +02:00
remove the Agent static instance
This commit is contained in:
parent
0eae0f129c
commit
cdfb232078
2 changed files with 1 additions and 5 deletions
|
@ -16,15 +16,13 @@
|
|||
#include "Agent.h"
|
||||
#include "voxels/VoxelScriptingInterface.h"
|
||||
|
||||
Agent* Agent::_staticInstance = NULL;
|
||||
|
||||
Agent::Agent(const unsigned char* dataBuffer, int numBytes) :
|
||||
Assignment(dataBuffer, numBytes),
|
||||
_shouldStop(false)
|
||||
{
|
||||
setStaticInstance(this);
|
||||
}
|
||||
|
||||
|
||||
void Agent::stop() {
|
||||
_shouldStop = true;
|
||||
}
|
||||
|
|
|
@ -30,8 +30,6 @@ signals:
|
|||
void willSendAudioDataCallback();
|
||||
void willSendVisualDataCallback();
|
||||
private:
|
||||
static void setStaticInstance(Agent* staticInstance);
|
||||
static Agent* _staticInstance;
|
||||
static QScriptValue AudioInjectorConstructor(QScriptContext *context, QScriptEngine *engine);
|
||||
|
||||
bool volatile _shouldStop;
|
||||
|
|
Loading…
Reference in a new issue