Commit 178a6f52 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron
Browse files

Replace pass-by-rvalue-reference function parameters to by-value

* Caller does not need to care if object is effectively moved-from
  inside the function
parent 4af41182
......@@ -249,7 +249,7 @@ private:
void removeSharedMem();
void createReceivers();
void assemblePackets(DetFrameImagePackets&& det_frame_packets);
void assemblePackets(DetFrameImagePackets det_frame_packets);
bool checkLostPackets();
FrameType getLastReceivedFrame();
......
......@@ -73,7 +73,7 @@ public:
virtual void prepare();
void addFramePackets(DetFrameImagePackets&& det_frame_packets);
void addFramePackets(DetFrameImagePackets det_frame_packets);
Data getRawData(Data& data);
......
......@@ -996,7 +996,7 @@ Camera::DetStatus Camera::getDetTrigStatus()
return trig_status;
}
void Camera::assemblePackets(DetFrameImagePackets&& det_frame_packets)
void Camera::assemblePackets(DetFrameImagePackets det_frame_packets)
{
DEB_MEMBER_FUNCT();
......@@ -1011,10 +1011,8 @@ void Camera::assemblePackets(DetFrameImagePackets&& det_frame_packets)
int nb_recvs = getNbRecvs();
for (int i = 0; i < nb_recvs; ++i) {
bool ok = false;
if (det_packets[i]) {
if (det_packets[i])
ok = det_packets[i]->assemble(bptr);
det_packets[i].free();
}
if (!ok)
m_recv_list[i]->fillBadFrame(bptr);
}
......
......@@ -157,7 +157,7 @@ void Reconstruction::cleanUp()
m_frame_packet_map.clear();
}
void Reconstruction::addFramePackets(DetFrameImagePackets&& det_frame_packets)
void Reconstruction::addFramePackets(DetFrameImagePackets det_frame_packets)
{
DEB_MEMBER_FUNCT();
AutoMutex l(m_mutex);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment