From a6e21a0700fb32211f5ed00c605463e69becc9a8 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Tue, 23 Oct 2018 09:45:04 -0700 Subject: cleanup: apply const to read-only iterators Apply const to read-only iterators. Change-Id: Ib58f98596cb9f185d3b16a0b1fbd895dd37d3fd6 Signed-off-by: Patrick Venture --- manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manager.cpp b/manager.cpp index a64300c..0a30625 100644 --- a/manager.cpp +++ b/manager.cpp @@ -83,7 +83,7 @@ uint32_t BlobManager::buildBlobList() ids.clear(); /* Grab the list of blobs and extend the local list */ - for (auto& h : handlers) + for (const auto& h : handlers) { std::vector blobs = h->getBlobIds(); ids.insert(ids.end(), blobs.begin(), blobs.end()); @@ -144,7 +144,7 @@ GenericBlobInterface* BlobManager::getHandler(const std::string& path) /* Find a handler. */ GenericBlobInterface* handler = nullptr; - for (auto& h : handlers) + for (const auto& h : handlers) { if (h->canHandleBlob(path)) { -- cgit v1.2.3