diff options
author | Patrick Venture <venture@google.com> | 2018-10-23 09:45:04 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-24 19:17:37 +0000 |
commit | a6e21a0700fb32211f5ed00c605463e69becc9a8 (patch) | |
tree | d25e0d797bde168c01e744017817dd147465ba9e /manager.cpp | |
parent | 1c4d3d34af613ad511b779eb7375562486bb2758 (diff) | |
download | phosphor-ipmi-blobs-a6e21a0700fb32211f5ed00c605463e69becc9a8.tar.gz phosphor-ipmi-blobs-a6e21a0700fb32211f5ed00c605463e69becc9a8.zip |
cleanup: apply const to read-only iterators
Apply const to read-only iterators.
Change-Id: Ib58f98596cb9f185d3b16a0b1fbd895dd37d3fd6
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'manager.cpp')
-rw-r--r-- | manager.cpp | 4 |
1 files 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<std::string> 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)) { |