set directly this to the variable
instead of o=null and o=this
This commit is contained in:
parent
a4f54d65dd
commit
7209fa02e8
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user