History

foreach spacing and reference repairs

Stephen Birarda committed 12 years ago

Commit 8676ac31 parent fa0138313 files · +37 −37Browse files

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

Unified · Split

interface/src/DataServerClient.cpp+2−2
@@ -145,7 +145,7 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 144 unmodified lines
145145 } else {
146146 // mesh URL for a UUID, find avatar in our list
147147
148− foreach(SharedNodePointer node, NodeList::getInstance()->getNodeHash()) {
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
@@ -163,7 +163,7 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 11 unmodified lines
163163 Application::getInstance()->getProfile()->setSkeletonModelURL(QUrl(valueList[i]));
164164 } else {
165165 // skeleton URL for a UUID, find avatar in our list
166− foreach(SharedNodePointer node, NodeList::getInstance()->getNodeHash()) {
166+ foreach (const SharedNodePointer& node, NodeList::getInstance()->getNodeHash()) {
167167 if (node->getLinkedData() != NULL && node->getType() == NODE_TYPE_AGENT) {
168168 Avatar* avatar = (Avatar *) node->getLinkedData();
169169