Don't increase shared_ptrs use_count when forwarding.

Use std::move() to avoid increasing the use count of std::shared_ptr
when forwarding them to the vanguard object.
This commit is contained in:
Håkon Hægland
2021-09-23 10:56:18 +02:00
parent 4c5245196b
commit 16bbc338ab
12 changed files with 48 additions and 48 deletions

View File

@@ -52,10 +52,10 @@ void flowEbosSolventSetDeck(double setupTime, std::shared_ptr<Deck> deck,
using Vanguard = GetPropType<TypeTag, Properties::Vanguard>;
Vanguard::setExternalSetupTime(setupTime);
Vanguard::setExternalDeck(deck);
Vanguard::setExternalEclState(eclState);
Vanguard::setExternalSchedule(schedule);
Vanguard::setExternalSummaryConfig(summaryConfig);
Vanguard::setExternalDeck(std::move(deck));
Vanguard::setExternalEclState(std::move(eclState));
Vanguard::setExternalSchedule(std::move(schedule));
Vanguard::setExternalSummaryConfig(std::move(summaryConfig));
}