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
359 359
360 int thisFrame = 0;360 int thisFrame = 0;
361 361
362 NodeList* nodeList = NodeList::getInstance();362 auto nodeList = DependencyManager::get<NodeList>();
363 363
364 qint64 lastUpdate = usecTimestampNow();364 qint64 lastUpdate = usecTimestampNow();
365 365
@@ -483,7 +483,7 @@ void ScriptEngine::run() { · 117 unmodified lines
483 }483 }
484 484
485 // write audio packet to AudioMixer nodes485 // write audio packet to AudioMixer nodes
486 NodeList* nodeList = NodeList::getInstance();486 auto nodeList = DependencyManager::get<NodeList>();
487 nodeList->eachNode([this, &nodeList, &audioPacket, &numPreSequenceNumberBytes](const SharedNodePointer& node){487 nodeList->eachNode([this, &nodeList, &audioPacket, &numPreSequenceNumberBytes](const SharedNodePointer& node){
488 // only send to nodes of type AudioMixer488 // only send to nodes of type AudioMixer
489 if (node->getType() == NodeType::AudioMixer) {489 if (node->getType() == NodeType::AudioMixer) {