#include "perceptioninfoprivate.h"

#include "btperceptioninfoscriptable.h"

using namespace GluonEngine;

PerceptionInfoPrivate::PerceptionInfoPrivate(QObject * parent)
	: QSharedData()
{
	info = new btPerceptionInfoScriptable(parent);
	QScriptValue extensionObject = engine.globalObject();
	script = 0;
}

PerceptionInfoPrivate::PerceptionInfoPrivate(const PerceptionInfoPrivate& other)
	: QSharedData()
	, info(other.info)
	, drawFunc(other.drawFunc)
	, updateFunc(other.updateFunc)
	, getAdjustedValueFunc(other.getAdjustedValueFunc)
	, script(other.script)
{
	QScriptValue extensionObject = engine.globalObject();
}

PerceptionInfoPrivate::~PerceptionInfoPrivate()
{
}

#include "perceptioninfoprivate.h"

#include "btperceptioninfoscriptable.h"

using namespace GluonEngine;

PerceptionInfoPrivate::PerceptionInfoPrivate(QObject * parent)
	: QSharedData()
{
	info = new btPerceptionInfoScriptable(parent);
	QScriptValue extensionObject = engine.globalObject();
	script = 0;
}

PerceptionInfoPrivate::PerceptionInfoPrivate(const PerceptionInfoPrivate& other)
	: QSharedData()
	, info(other.info)
	, updateFunc(other.updateFunc)
	, drawFunc(other.drawFunc)
	, getAdjustedValueFunc(other.getAdjustedValueFunc)
	, script(other.script)
{
	QScriptValue extensionObject = engine.globalObject();
}

PerceptionInfoPrivate::~PerceptionInfoPrivate()
{
}

--- 
+++ 
@@ -15,8 +15,8 @@
 PerceptionInfoPrivate::PerceptionInfoPrivate(const PerceptionInfoPrivate& other)
 	: QSharedData()
 	, info(other.info)
+	, drawFunc(other.drawFunc)
 	, updateFunc(other.updateFunc)
-	, drawFunc(other.drawFunc)
 	, getAdjustedValueFunc(other.getAdjustedValueFunc)
 	, script(other.script)
 {
Fix an initialization order issue in the copy ctor to avoid the warning

CCMAIL: d033e22ae348aeb5660fc2140aec35850c4da997@leinir.dk
