Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'platform/wifi_info_mac.mm')
-rw-r--r--platform/wifi_info_mac.mm5
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);
}