Skip to content

Commit

Permalink
suppress stlFindInsert
Browse files Browse the repository at this point in the history
Signed-off-by: ISP akm <[email protected]>
  • Loading branch information
xygyo77 committed Jun 21, 2024
1 parent bf9a7ed commit 8538ea0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CARET_analyze_cpp_impl/src/records_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ std::map<std::tuple<uint64_t>, std::unique_ptr<RecordsBase>> RecordsBase::groupb
record.get_with_default(column0, UINT64_MAX)
);
if (map.count(key) == 0) {
map[key] = std::make_unique<RecordsVectorImpl>(get_columns());
map[key] = std::make_unique<RecordsVectorImpl>(get_columns()); // cppcheck-suppress stlFindInsert
}
auto & records = map[key];
records->append(record);
Expand All @@ -914,7 +914,7 @@ std::map<std::tuple<uint64_t, uint64_t>, std::unique_ptr<RecordsBase>> RecordsBa
record.get_with_default(column1, UINT64_MAX)
);
if (map.count(key) == 0) {
map[key] = std::make_unique<RecordsVectorImpl>(get_columns());
map[key] = std::make_unique<RecordsVectorImpl>(get_columns()); // cppcheck-suppress stlFindInsert
}
auto & records = map[key];
records->append(record);
Expand All @@ -937,7 +937,7 @@ std::map<std::tuple<uint64_t, uint64_t, uint64_t>,
record.get_with_default(column2, UINT64_MAX)
);
if (map.count(key) == 0) {
map[key] = std::make_unique<RecordsVectorImpl>(get_columns());
map[key] = std::make_unique<RecordsVectorImpl>(get_columns()); // cppcheck-suppress stlFindInsert
}
auto & records = map[key];
records->append(record);
Expand Down

0 comments on commit 8538ea0

Please sign in to comment.