Use unique_ptr consistently for global vectors

This commit is contained in:
Paul Romano 2019-02-26 22:24:07 -06:00
parent 4877ffcccd
commit 38e39c4486
18 changed files with 78 additions and 95 deletions

View file

@ -172,7 +172,7 @@ Bank SourceDistribution::sample() const
if (space_box) {
if (space_box->only_fissionable()) {
// Determine material
auto c = model::cells[cell_index];
const auto& c = model::cells[cell_index];
auto mat_index = c->material_.size() == 1
? c->material_[0] : c->material_[instance];