Skip to content

Commit 5d67c45

Browse files
Don't pass zm_packet by reference
1 parent 930a0e8 commit 5d67c45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/zm_packetqueue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ void PacketQueue::free_it(packetqueue_iterator *it) {
725725
}
726726
}
727727

728-
bool PacketQueue::is_there_an_iterator_pointing_to_packet(const std::shared_ptr<ZMPacket> &zm_packet) {
728+
bool PacketQueue::is_there_an_iterator_pointing_to_packet(const std::shared_ptr<ZMPacket> zm_packet) {
729729
for (
730730
std::list<packetqueue_iterator *>::iterator iterators_it = iterators.begin();
731731
iterators_it != iterators.end();

src/zm_packetqueue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class PacketQueue {
8787
packetqueue_iterator snapshot_it,
8888
unsigned int pre_event_count
8989
);
90-
bool is_there_an_iterator_pointing_to_packet(const std::shared_ptr<ZMPacket> &zm_packet);
90+
bool is_there_an_iterator_pointing_to_packet(const std::shared_ptr<ZMPacket> zm_packet);
9191
void unlock(ZMLockedPacket *lp);
9292
void notify_all();
9393
void wait();

0 commit comments

Comments
 (0)