OSDN Git Service

Fix loops iteration
authorJakub Pawlowski <jpawlowski@google.com>
Wed, 7 Jun 2017 16:07:26 +0000 (09:07 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Wed, 7 Jun 2017 16:13:40 +0000 (09:13 -0700)
commitbb95a1d62243dc3f4ce7c208d68f50cb57713eab
tree3b1d895e0ad522533d89dfb2e96491dd941c5693
parent3d268331ae32bd70f60984c9553db1c961073c42
Fix loops iteration

The erase() already increment the iterator. If the loop additionally do
"it++", it will skip some elements, and might iterate over the end.

Test: compilation test
Change-Id: Ibd9c993d8e80d807f5d7bc920da36ee538477438
stack/gatt/gatt_utils.cc