diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-04-15 11:24:35 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-04-15 11:26:37 +0200 |
commit | 0771e521bea04a25536120d00f987b5c491b2e6a (patch) | |
tree | 1ac3a409f93caaff96f17642e6616f1f4eafa508 /src/MuxElements.cpp | |
parent | 07d3536083ad8d0f08819e8be89aa5934fcaa712 (diff) | |
download | dabmux-0771e521bea04a25536120d00f987b5c491b2e6a.tar.gz dabmux-0771e521bea04a25536120d00f987b5c491b2e6a.tar.bz2 dabmux-0771e521bea04a25536120d00f987b5c491b2e6a.zip |
Simplify getSubchannel by using lambda
Diffstat (limited to 'src/MuxElements.cpp')
-rw-r--r-- | src/MuxElements.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MuxElements.cpp b/src/MuxElements.cpp index c02afcd..fd8d57a 100644 --- a/src/MuxElements.cpp +++ b/src/MuxElements.cpp @@ -207,7 +207,7 @@ vector<DabSubchannel*>::iterator getSubchannel( return find_if( subchannels.begin(), subchannels.end(), - bind2nd(SubchannelId(), id) + [&](const DabSubchannel* s){ return s->id == id; } ); } |