set directly this to the variable

instead of o=null and o=this
This commit is contained in:
Jaime Torres 2012-10-10 19:10:25 +02:00
parent a4f54d65dd
commit 7209fa02e8

View File

@ -171,9 +171,8 @@ void DataContainer::setNeedsToBeStored(bool store)
DataEngine* DataContainer::getDataEngine()
{
QObject *o = NULL;
QObject *o = this;
DataEngine *de = NULL;
o = this;
while (de == NULL)
{
o = dynamic_cast<QObject *> (o->parent());