Simplify rhs of conditional.

This commit is contained in:
Atgeirr Flø Rasmussen 2015-07-13 11:23:56 +02:00
parent 5be3ae9ad6
commit eda6899571

View File

@ -84,7 +84,7 @@ struct HelperOps
int numNNC = 0;
// handle non-neighboring connections
std::shared_ptr<const NNC> nnc = eclState ? eclState->getNNC() : std::make_shared<const NNC> (nullptr, nullptr);
std::shared_ptr<const NNC> nnc = eclState ? eclState->getNNC() : nullptr;
const bool has_nnc = nnc && nnc->hasNNC();
if (has_nnc) {
numNNC = nnc->numNNC();