Skip to content

Commit

Permalink
Fixed passing a constant set by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Małecki authored and rndi committed Oct 29, 2019
1 parent 3a5ead0 commit 52b18e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion srtcore/fec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ TranslateLossRecords(loss, irrecover);
HLOGC(mglog.Debug, log << "FEC: ... COLLECTED IRRECOVER: " << Printable(loss) << (any_dismiss ? " CELLS DISMISSED" : " nothing dismissed"));
}

void FECFilterBuiltin::TranslateLossRecords(const set<int32_t> loss, loss_seqs_t& irrecover)
void FECFilterBuiltin::TranslateLossRecords(const set<int32_t>& loss, loss_seqs_t& irrecover)
{
if (loss.empty())
return;
Expand Down
2 changes: 1 addition & 1 deletion srtcore/fec.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class FECFilterBuiltin: public SrtPacketFilterBase
int32_t RcvGetLossSeqHoriz(Group& g);
int32_t RcvGetLossSeqVert(Group& g);

static void TranslateLossRecords(const std::set<int32_t> loss, loss_seqs_t& irrecover);
static void TranslateLossRecords(const std::set<int32_t>& loss, loss_seqs_t& irrecover);
void RcvCheckDismissColumn(int32_t seqno, int colgx, loss_seqs_t& irrecover);
int RcvGetRowGroupIndex(int32_t seq);
int RcvGetColumnGroupIndex(int32_t seq);
Expand Down

0 comments on commit 52b18e2

Please sign in to comment.