History

Changed NodeList::getInstance() calls to use the DM

Atlante45 committed 11 years ago

Commit 0bd9ed41 parent 52f203342 files · +147 −141Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 42 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+2−2
@@ -359,7 +359,7 @@ void ScriptEngine::run() { · 358 unmodified lines
359359
360360 int thisFrame = 0;
361361
362− NodeList* nodeList = NodeList::getInstance();
362+ auto nodeList = DependencyManager::get<NodeList>();
363363
364364 qint64 lastUpdate = usecTimestampNow();
365365
@@ -483,7 +483,7 @@ void ScriptEngine::run() { · 117 unmodified lines
483483 }
484484
485485 // write audio packet to AudioMixer nodes
486− NodeList* nodeList = NodeList::getInstance();
486+ auto nodeList = DependencyManager::get<NodeList>();
487487 nodeList->eachNode([this, &nodeList, &audioPacket, &numPreSequenceNumberBytes](const SharedNodePointer& node){
488488 // only send to nodes of type AudioMixer
489489 if (node->getType() == NodeType::AudioMixer) {