diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-05-06 23:41:16 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:16:59 +0300 |
commit | 8887c1f807cacd21fec29eb434fe18ac7ad4af86 (patch) | |
tree | 744522064761f9c7f0e2fe438d24ae34cbde5c11 /platform/wifi_info_mac.mm | |
parent | d7a5432a792868850fb85792d3ef0f356098c4b1 (diff) |
Added filter to location manager
Diffstat (limited to 'platform/wifi_info_mac.mm')
-rw-r--r-- | platform/wifi_info_mac.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/wifi_info_mac.mm b/platform/wifi_info_mac.mm index 2b904c4d18..625fe0223d 100644 --- a/platform/wifi_info_mac.mm +++ b/platform/wifi_info_mac.mm @@ -69,11 +69,12 @@ static string AppendZeroIfNeeded(string const & macAddrPart) { utils::TokenizeIterator tokIt(rawBssid, ":"); apn.m_bssid = AppendZeroIfNeeded(*tokIt); - while (!(++tokIt).is_last()) + do { + ++tokIt; apn.m_bssid += "-"; apn.m_bssid += AppendZeroIfNeeded(*tokIt); - } + } while (!tokIt.is_last()); } m_accessPoints.push_back(apn); } |