[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] cppcheck: "Same iterator is used with different containers"
Cheers,
Ondrej
>From 38a20c32cc75befc58f19396ab34a1609e22e73f Mon Sep 17 00:00:00 2001
From: Ondrej Oprala <ondrej.oprala@gmail.com>
Date: Tue, 11 Apr 2017 17:08:13 +0200
Subject: [PATCH 2/3] Fix cppcheck error: "Same iterator is used with different
containers"
* src/abg-dwarf-reader.cc
(type_or_decl_base_sptr::lookup_artifact_from_per_tu_die_representation):
Fix an error found by cppcheck.
Signed-off-by: Ondrej Oprala <ondrej.oprala@gmail.com>
---
src/abg-dwarf-reader.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/abg-dwarf-reader.cc b/src/abg-dwarf-reader.cc
index 100ec91..9d7b841 100644
--- a/src/abg-dwarf-reader.cc
+++ b/src/abg-dwarf-reader.cc
@@ -3342,7 +3342,7 @@ public:
assert(!repr.empty());
istring_type_or_decl_base_sptr_map_type::iterator i =
per_tu_name_artefacts_map_.find(env()->intern(repr));
- if (i == name_artefacts_map_.end())
+ if (i == per_tu_name_artefacts_map_.end())
return type_or_decl_base_sptr();
return i->second;
}
--
2.7.4