mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +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:
|
public:
|
||||||
LinePrinter(stringstream& out, string prefix)
|
LinePrinter(stringstream& out, string prefix)
|
||||||
: fOut(out)
|
: fOut(out)
|
||||||
, fPrefix(move(prefix))
|
, fPrefix(std::move(prefix))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
// prints line with prefix on both cout (thread-safe) and output stream
|
// 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);
|
int nbytes = zmq_msg_recv(static_cast<Message*>(part.get())->GetMessage(), fSocket, flags);
|
||||||
if (nbytes >= 0) {
|
if (nbytes >= 0) {
|
||||||
static_cast<Message*>(part.get())->Realign();
|
static_cast<Message*>(part.get())->Realign();
|
||||||
msgVec.push_back(move(part));
|
msgVec.push_back(std::move(part));
|
||||||
totalSize += nbytes;
|
totalSize += nbytes;
|
||||||
} else if (zmq_errno() == EAGAIN || zmq_errno() == EINTR) {
|
} else if (zmq_errno() == EAGAIN || zmq_errno() == EINTR) {
|
||||||
if (fCtx.Interrupted()) {
|
if (fCtx.Interrupted()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user