mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
Use std::move rather than just move
Apparently: "warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]" is default in new XCode.
This commit is contained in:
parent
f732b87def
commit
b40db42196
|
@ -29,7 +29,7 @@ class LinePrinter
|
|||
public:
|
||||
LinePrinter(stringstream& out, string prefix)
|
||||
: fOut(out)
|
||||
, fPrefix(move(prefix))
|
||||
, fPrefix(std::move(prefix))
|
||||
{}
|
||||
|
||||
// prints line with prefix on both cout (thread-safe) and output stream
|
||||
|
|
|
@ -225,7 +225,7 @@ class Socket final : public fair::mq::Socket
|
|||
int nbytes = zmq_msg_recv(static_cast<Message*>(part.get())->GetMessage(), fSocket, flags);
|
||||
if (nbytes >= 0) {
|
||||
static_cast<Message*>(part.get())->Realign();
|
||||
msgVec.push_back(move(part));
|
||||
msgVec.push_back(std::move(part));
|
||||
totalSize += nbytes;
|
||||
} else if (zmq_errno() == EAGAIN || zmq_errno() == EINTR) {
|
||||
if (fCtx.Interrupted()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user