Showing the changes to libraries/animation/src/AnimationCacheScriptingInterface.cpp (1 of 15 files). Show all
Unified · Split
| @@ -11,11 +11,10 @@ · 10 unmodified lines | ||
| 11 | 11 | |
| 12 | 12 | #include "AnimationCacheScriptingInterface.h" |
| 13 | 13 | |
| 14 | −AnimationCacheScriptingInterface::AnimationCacheScriptingInterface(AnimationCache* animationCache) : | |
| 15 | − _animationCache(animationCache), | |
| 16 | − ScriptableResourceCache::ScriptableResourceCache(animationCache) | |
| 14 | +AnimationCacheScriptingInterface::AnimationCacheScriptingInterface() : | |
| 15 | + ScriptableResourceCache::ScriptableResourceCache(DependencyManager::get<AnimationCache>()) | |
| 17 | 16 | { } |
| 18 | 17 | |
| 19 | 18 | AnimationPointer AnimationCacheScriptingInterface::getAnimation(const QUrl& url) { |
| 20 | − return _animationCache->getAnimation(url); | |
| 21 | −} | |
| 19 | + return DependencyManager::get<AnimationCache>()->getAnimation(url); | |
| 20 | +} | |