be consistent with other functions
This commit is contained in:
parent
fb9bb5c8b5
commit
3290834dfe
@ -169,12 +169,13 @@ class TFactor
|
|||||||
assert (idx != args_.size());
|
assert (idx != args_.size());
|
||||||
new_ranges.push_back (ranges_[idx]);
|
new_ranges.push_back (ranges_[idx]);
|
||||||
}
|
}
|
||||||
Params backup = params_;
|
Params newps;
|
||||||
params_.clear();
|
newps.reserve (params_.size());
|
||||||
CutIndexer indexer (new_args, new_ranges, args_, ranges_);
|
CutIndexer indexer (new_args, new_ranges, args_, ranges_);
|
||||||
for (; indexer.valid(); ++indexer) {
|
for (; indexer.valid(); ++indexer) {
|
||||||
params_.push_back (backup[indexer]);
|
newps.push_back (params_[indexer]);
|
||||||
}
|
}
|
||||||
|
params_ = newps;
|
||||||
args_ = new_args;
|
args_ = new_args;
|
||||||
ranges_ = new_ranges;
|
ranges_ = new_ranges;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user