History

resolve conflicts on merge with upstream master

Stephen Birarda committed 12 years ago

Commit 599e3bb2 parents 4ea14a5 bd6418d44 files · +486 −892Browse files

Showing the changes to interface/src/DataServerClient.cpp (1 of 44 files). Show all

Unified · Split

interface/src/DataServerClient.cpp+5−6
@@ -144,14 +144,14 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 143 unmodified lines
144144 Application::getInstance()->getProfile()->setFaceModelURL(QUrl(valueList[i]));
145145 } else {
146146 // mesh URL for a UUID, find avatar in our list
147− NodeList* nodeList = NodeList::getInstance();
148− for (NodeList::iterator node = nodeList->begin(); node != nodeList->end(); node++) {
147+
148+ foreach (const SharedNodePointer& node, NodeList::getInstance()->getNodeHash()) {
149149 if (node->getLinkedData() != NULL && node->getType() == NODE_TYPE_AGENT) {
150150 Avatar* avatar = (Avatar *) node->getLinkedData();
151151
152152 if (avatar->getUUID() == userUUID) {
153153 QMetaObject::invokeMethod(&avatar->getHead().getFaceModel(),
154− "setURL", Q_ARG(QUrl, QUrl(valueList[i])));
154+ "setURL", Q_ARG(QUrl, QUrl(valueList[i])));
155155 }
156156 }
157157 }
@@ -163,14 +163,13 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 5 unmodified lines
163163 Application::getInstance()->getProfile()->setSkeletonModelURL(QUrl(valueList[i]));
164164 } else {
165165 // skeleton URL for a UUID, find avatar in our list
166− NodeList* nodeList = NodeList::getInstance();
167− for (NodeList::iterator node = nodeList->begin(); node != nodeList->end(); node++) {
166+ foreach (const SharedNodePointer& node, NodeList::getInstance()->getNodeHash()) {
168167 if (node->getLinkedData() != NULL && node->getType() == NODE_TYPE_AGENT) {
169168 Avatar* avatar = (Avatar *) node->getLinkedData();
170169
171170 if (avatar->getUUID() == userUUID) {
172171 QMetaObject::invokeMethod(&avatar->getSkeletonModel(), "setURL",
173− Q_ARG(QUrl, QUrl(valueList[i])));
172+ Q_ARG(QUrl, QUrl(valueList[i])));
174173 }
175174 }
176175 }