History

Revise scriptable resource caches' interfaces

David Rowe committed 8 years ago

Commit baf88ab1 parent 16e06de15 files · +54 −54Browse files

Showing the changes to libraries/audio/src/SoundCacheScriptingInterface.cpp (1 of 15 files). Show all

Unified · Split

libraries/audio/src/SoundCacheScriptingInterface.cpp+3−4
@@ -11,11 +11,10 @@ · 10 unmodified lines
1111
1212 #include "SoundCacheScriptingInterface.h"
1313
14−SoundCacheScriptingInterface::SoundCacheScriptingInterface(SoundCache* soundCache) :
15− _soundCache(soundCache),
16− ScriptableResourceCache::ScriptableResourceCache(soundCache)
14+SoundCacheScriptingInterface::SoundCacheScriptingInterface() :
15+ ScriptableResourceCache::ScriptableResourceCache(DependencyManager::get<SoundCache>())
1716 { }
1817
1918 SharedSoundPointer SoundCacheScriptingInterface::getSound(const QUrl& url) {
20− return _soundCache->getSound(url);
19+ return DependencyManager::get<SoundCache>()->getSound(url);
2120 }