Remove unecessary move

This commit is contained in:
Atlante45 2015-10-06 16:15:51 -07:00
parent 5ee966261d
commit ca575bee89

View file

@ -514,7 +514,7 @@ std::unique_ptr<NLPacket> LimitedNodeList::constructPingPacket(PingType_t pingTy
pingPacket->writePrimitive(pingType);
pingPacket->writePrimitive(usecTimestampNow());
return std::move(pingPacket);
return pingPacket;
}
std::unique_ptr<NLPacket> LimitedNodeList::constructPingReplyPacket(NLPacket& pingPacket) {
@ -529,7 +529,7 @@ std::unique_ptr<NLPacket> LimitedNodeList::constructPingReplyPacket(NLPacket& pi
replyPacket->writePrimitive(timeFromOriginalPing);
replyPacket->writePrimitive(usecTimestampNow());
return std::move(replyPacket);
return replyPacket;
}
std::unique_ptr<NLPacket> LimitedNodeList::constructICEPingPacket(PingType_t pingType, const QUuid& iceID) {
@ -539,7 +539,7 @@ std::unique_ptr<NLPacket> LimitedNodeList::constructICEPingPacket(PingType_t pin
icePingPacket->write(iceID.toRfc4122());
icePingPacket->writePrimitive(pingType);
return std::move(icePingPacket);
return icePingPacket;
}
std::unique_ptr<NLPacket> LimitedNodeList::constructICEPingReplyPacket(NLPacket& pingPacket, const QUuid& iceID) {