bmc: use c++11 compatible lambda search
[&blob](const auto& iter) { return (iter == blob); });
^~~~
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I0f6a833ec6fb2415a2741469c8ba10933936e5f7
diff --git a/firmware_handler.hpp b/firmware_handler.hpp
index 6aae5b6..1f7032b 100644
--- a/firmware_handler.hpp
+++ b/firmware_handler.hpp
@@ -168,9 +168,9 @@
private:
void addBlobId(const std::string& blob)
{
- auto blobIdMatch =
- std::find_if(blobIDs.begin(), blobIDs.end(),
- [&blob](const auto& iter) { return (iter == blob); });
+ auto blobIdMatch = std::find_if(
+ blobIDs.begin(), blobIDs.end(),
+ [&blob](const std::string& iter) { return (iter == blob); });
if (blobIdMatch == blobIDs.end())
{
blobIDs.push_back(blob);