1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-08-21 15:50:50 +00:00

Better way to construct SetListingView

This commit is contained in:
King_DuckZ 2016-02-12 20:14:12 +01:00
parent 2a7b8437ed
commit bed191c4fc
3 changed files with 32 additions and 27 deletions

View file

@ -175,7 +175,7 @@ TEST(machinery, diriterator) {
std::vector<std::string> flattened;
flattened.reserve(lengthof(expected_list));
flatten_filelist(SetListingView(lst), flattened);
flatten_filelist(lst.make_view(), flattened);
EXPECT_EQ(lengthof(expected_list), flattened.size());
const auto count = std::min(lengthof(expected_list), flattened.size());
for (std::size_t z = 0; z < count; ++z) {