mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use std::make_unique where applicable
This commit is contained in:
@@ -169,7 +169,7 @@ namespace Opm {
|
||||
using VT = typename AttributeMap::value_type;
|
||||
|
||||
for (const auto& r : rmap.activeRegions()) {
|
||||
auto v = std::unique_ptr<Value>(new Value(attr));
|
||||
auto v = std::make_unique<Value>(attr);
|
||||
|
||||
const auto stat = attr_.insert(VT(r, std::move(v)));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user