History

Merge branch 'master' of https://github.com/highfidelity/hifi into proto-received-message

Ryan Huffman committed 10 years ago

Commit dac491e2 parents 07d2151 7627097144 files · +4746 −1636Browse files

Showing the changes to assignment-client/src/AssignmentClientMonitor.cpp (1 of 144 files). Show all

Unified · Split

assignment-client/src/AssignmentClientMonitor.cpp+4−2
@@ -9,6 +9,7 @@ · 8 unmodified lines
99 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
1010 //
1111
12+#include <memory>
1213 #include <signal.h>
1314
1415 #include <AddressManager.h>
@@ -227,8 +228,9 @@ void AssignmentClientMonitor::handleChildStatusPacket(QSharedPointer<ReceivedMes · 212 unmodified lines
227228 matchingNode = DependencyManager::get<LimitedNodeList>()->addOrUpdateNode
228229 (senderID, NodeType::Unassigned, senderSockAddr, senderSockAddr, false, false);
229230
230− childData = new AssignmentClientChildData(Assignment::Type::AllTypes);
231− matchingNode->setLinkedData(childData);
231+ auto childData = std::unique_ptr<AssignmentClientChildData>
232+ { new AssignmentClientChildData(Assignment::Type::AllTypes) };
233+ matchingNode->setLinkedData(std::move(childData));
232234 } else {
233235 // tell unknown assignment-client child to exit.
234236 qDebug() << "Asking unknown child at" << senderSockAddr << "to exit.";