diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-11-07 21:21:28 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-11-07 21:37:30 +0100 |
commit | 596f46de6532834f5143405120a3896fca27bb6d (patch) | |
tree | a88169472e85b96a2f60bac3273eaff20d314dee /src/dabOutput | |
parent | 5c12d5b387e07203be79df7e4d526d124a53ad8a (diff) | |
download | dabmux-596f46de6532834f5143405120a3896fca27bb6d.tar.gz dabmux-596f46de6532834f5143405120a3896fca27bb6d.tar.bz2 dabmux-596f46de6532834f5143405120a3896fca27bb6d.zip |
Add const for the TCPConnection in remove_if lambda
Diffstat (limited to 'src/dabOutput')
-rw-r--r-- | src/dabOutput/dabOutputTcp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dabOutput/dabOutputTcp.cpp b/src/dabOutput/dabOutputTcp.cpp index 975fdff..02bc7f0 100644 --- a/src/dabOutput/dabOutputTcp.cpp +++ b/src/dabOutput/dabOutputTcp.cpp @@ -121,7 +121,7 @@ class TCPDataDispatcher connection.queue.push(data); } - m_connections.remove_if([](TCPConnection& conn){ return conn.is_overloaded(); }); + m_connections.remove_if([](const TCPConnection& conn){ return conn.is_overloaded(); }); } private: |