Make EQStreamIdentifier::Record ctor take advantage of move semantics [clang-tidy]

This commit is contained in:
Michael Cook (mackal) 2016-05-25 16:29:39 -04:00
parent 60da544d3a
commit 615158e701

View File

@ -1,3 +1,5 @@
#include <utility>
#include "global_define.h" #include "global_define.h"
#include "eqemu_logsys.h" #include "eqemu_logsys.h"
#include "eq_stream_ident.h" #include "eq_stream_ident.h"
@ -156,7 +158,7 @@ EQStreamInterface *EQStreamIdentifier::PopIdentified() {
} }
EQStreamIdentifier::Record::Record(std::shared_ptr<EQStream> s) EQStreamIdentifier::Record::Record(std::shared_ptr<EQStream> s)
: stream(s), : stream(std::move(s)),
expire(STREAM_IDENT_WAIT_MS) expire(STREAM_IDENT_WAIT_MS)
{ {
} }