From 98a193e5913d764b4515d9d18dd4d715f8063725 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 13 Nov 2018 16:01:33 +0100 Subject: [PATCH] BFM demod: fixed iterator in RDS parser --- plugins/channelrx/demodbfm/rdsparser.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/channelrx/demodbfm/rdsparser.cpp b/plugins/channelrx/demodbfm/rdsparser.cpp index 089aa2399..be40ab821 100644 --- a/plugins/channelrx/demodbfm/rdsparser.cpp +++ b/plugins/channelrx/demodbfm/rdsparser.cpp @@ -532,20 +532,16 @@ void RDSParser::decode_type0(unsigned int *group, bool B) if (af_1) { // @TODO: Find proper header or STL on OSX -#ifndef __APPLE__ - std::pair, bool> res = m_g0_alt_freq.insert(af_1/1e3); - m_g0_af_updated = m_g0_af_updated || res.second; -#endif + auto res = m_g0_alt_freq.insert(af_1/1e3); + m_g0_af_updated = m_g0_af_updated || res.second; no_af += 1; } if (af_2) { // @TODO: Find proper header or STL on OSX -#ifndef __APPLE__ - std::pair, bool> res = m_g0_alt_freq.insert(af_2/1e3); + auto res = m_g0_alt_freq.insert(af_2/1e3); m_g0_af_updated = m_g0_af_updated || res.second; -#endif no_af += 2; }