From 3f963bb897e8c5f8c633af50c96bdb4e68a6c5a8 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Thu, 6 Dec 2018 20:47:47 +0100 Subject: msm8996-common: gps: Switch back to 89xx tags * Basically just remove the gnss 1.1 support * Tag: LA.UM.7.6.r1-03100-89xx.0 Change-Id: Ie52463e60c6f6bb127e736fe3e23a8b75c044a3a Signed-off-by: Davide Garberi --- gps/core/SystemStatusOsObserver.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gps/core') diff --git a/gps/core/SystemStatusOsObserver.cpp b/gps/core/SystemStatusOsObserver.cpp index 0f6d228..8127e86 100644 --- a/gps/core/SystemStatusOsObserver.cpp +++ b/gps/core/SystemStatusOsObserver.cpp @@ -328,9 +328,12 @@ void SystemStatusOsObserver::notify(const list& dlist) for (auto client : clientSet) { unordered_set dataItemIdsForThisClient( mParent->mClientToDataItems.getValSet(client)); - for (auto id : dataItemIdsForThisClient) { - if (dataItemIdsToBeSent.find(id) == dataItemIdsToBeSent.end()) { - dataItemIdsForThisClient.erase(id); + for (auto itr = dataItemIdsForThisClient.begin(); + itr != dataItemIdsForThisClient.end(); ) { + if (dataItemIdsToBeSent.find(*itr) == dataItemIdsToBeSent.end()) { + itr = dataItemIdsForThisClient.erase(itr); + } else { + itr++; } } -- cgit v1.2.3