Commit e354c5c2 authored by Max Kellermann's avatar Max Kellermann

IdTable, SongFilter: use std::fill_n() instead of std::fill()

parent 04bc9005
......@@ -38,7 +38,7 @@ class IdTable {
public:
IdTable(unsigned _size):size(_size), next(1), data(new int[size]) {
std::fill(data, data + size, -1);
std::fill_n(data, size, -1);
}
~IdTable() {
......
......@@ -85,7 +85,7 @@ bool
SongFilter::Item::Match(const Tag &_tag) const
{
bool visited_types[TAG_NUM_OF_ITEM_TYPES];
std::fill(visited_types, visited_types + TAG_NUM_OF_ITEM_TYPES, false);
std::fill_n(visited_types, TAG_NUM_OF_ITEM_TYPES, false);
for (unsigned i = 0; i < _tag.num_items; i++) {
visited_types[_tag.items[i]->type] = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment