Skip to content

Commit

Permalink
Pass (const) reference not copy of listener and sender lists
Browse files Browse the repository at this point in the history
Resolves #246
  • Loading branch information
marcusbirkin committed Nov 29, 2021
1 parent bde47cc commit ebb0ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sacn/streamingacn.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ public slots:

public:
tListener getListener(quint16 universe);
const decltype(m_listenerHash) getListenerList() { return m_listenerHash; }
const decltype(m_listenerHash) &getListenerList() { return m_listenerHash; }

tSender getSender(quint16 universe, CID cid = CID::CreateCid());
const decltype(m_senderHash) getSenderList() { return m_senderHash; }
const decltype(m_senderHash) &getSenderList() { return m_senderHash; }

signals:
void newSender();
Expand Down

0 comments on commit ebb0ad0

Please sign in to comment.