fix typos to remove clang build warnings

This commit is contained in:
John Colvin committed 2020-12-06 20:24:56 -06:00
1 parent 4c066859c4
commit 12eef87fb0
2 files changed
+3 -4

No files matched your search

+2 -2
View File
@@ -61,7 +61,7 @@ struct Formatter {
}
// convenient overloads, so callers need only pass a container param 'foo' instead of
// 'foo.begin(), foo.end()')
// 'foo.begin(), foo.end()'
template <class T>
static std::string fmt_values(const std::vector<T>& values) {
@@ -75,7 +75,7 @@ struct Formatter {
template <class TKey, class TValue>
static std::string fmt_values(const std::map<TKey, TValue>& map) {
auto values = map | ranges::view::transform([](const auto& p) { return p.second; });
auto values = map | ranges::views::transform([](const auto& p) { return p.second; });
return fmt_values(values.begin(), values.end());
}
@@ -49,8 +49,7 @@ std::unordered_map<MDP3OrderKey, IcebergInput> find_icebergs(const std::string&
}
dest.emplace(
MDP3OrderKey(ok),
IcebergInput(MDP3Quantity(total_qty), show_quantities, fill_quantities))
.first;
IcebergInput(MDP3Quantity(total_qty), show_quantities, fill_quantities));
return in;
};
if (force_regen || !bts::spartan::file::read_from_file(path, read_op, VERSION)) {