Replace NLPacketList::getSourceID() with const& return

This commit is contained in:
Ryan Huffman 2015-08-19 10:03:52 -07:00
parent da7c9198c5
commit ebf112e200

View file

@ -21,7 +21,7 @@ public:
NLPacketList(PacketType packetType, QByteArray extendedHeader = QByteArray(), bool isReliable = false, bool isOrdered = false);
NLPacketList(PacketList&& packetList);
QUuid getSourceID() const { return _sourceID; }
const QUuid& getSourceID() const { return _sourceID; }
private:
NLPacketList(const NLPacketList& other) = delete;