projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add method to get ObjectRegistry from Core
[platform/core/uifw/dali-core.git]
/
automated-tests
/
src
/
dali
/
dali-test-suite-utils
/
dali-test-suite-utils.cpp
diff --git
a/automated-tests/src/dali/dali-test-suite-utils/dali-test-suite-utils.cpp
b/automated-tests/src/dali/dali-test-suite-utils/dali-test-suite-utils.cpp
index
b494a98
..
4a4ac81
100644
(file)
--- a/
automated-tests/src/dali/dali-test-suite-utils/dali-test-suite-utils.cpp
+++ b/
automated-tests/src/dali/dali-test-suite-utils/dali-test-suite-utils.cpp
@@
-356,17
+356,16
@@
struct ObjectDestructionFunctor
bool& refObjectDestroyedBoolean;
};
bool& refObjectDestroyedBoolean;
};
-ObjectDestructionTracker::ObjectDestructionTracker()
- :mRefObjectDestroyed( false)
+ObjectDestructionTracker::ObjectDestructionTracker( ObjectRegistry objectRegistry )
+: mObjectRegistry( objectRegistry ),
+ mRefObjectDestroyed( false)
{
}
void ObjectDestructionTracker::Start( Actor actor )
{
ObjectDestructionFunctor destructionFunctor( actor.GetObjectPtr(), mRefObjectDestroyed );
{
}
void ObjectDestructionTracker::Start( Actor actor )
{
ObjectDestructionFunctor destructionFunctor( actor.GetObjectPtr(), mRefObjectDestroyed );
-
- ObjectRegistry objectRegistry = Stage::GetCurrent().GetObjectRegistry();
- objectRegistry.ObjectDestroyedSignal().Connect( this, destructionFunctor );
+ mObjectRegistry.ObjectDestroyedSignal().Connect( this, destructionFunctor );
}
bool ObjectDestructionTracker::IsDestroyed()
}
bool ObjectDestructionTracker::IsDestroyed()