class Corpus {
public:
Corpus(FILE *outfp, size_t block_size)
- : invindex(new PostingListBuilder *[NUM_TRIGRAMS]), outfp(outfp), block_size(block_size) {
+ : invindex(new PostingListBuilder *[NUM_TRIGRAMS]), outfp(outfp), block_size(block_size)
+ {
fill(invindex.get(), invindex.get() + NUM_TRIGRAMS, nullptr);
}
- ~Corpus() {
+ ~Corpus()
+ {
for (unsigned i = 0; i < NUM_TRIGRAMS; ++i) {
delete invindex[i];
}