Return const ref from getSchedule
This commit is contained in:
@@ -197,10 +197,10 @@ return parser->parseString(deckData, ParseContext()) ;
|
||||
BOOST_AUTO_TEST_CASE(CreateSchedule) {
|
||||
DeckPtr deck = createDeck();
|
||||
EclipseState state(*deck, ParseContext());
|
||||
ScheduleConstPtr schedule = state.getSchedule();
|
||||
const auto& schedule = state.getSchedule();
|
||||
EclipseGridConstPtr eclipseGrid = state.getInputGrid();
|
||||
|
||||
BOOST_CHECK_EQUAL(schedule->getStartTime(), boost::posix_time::ptime(boost::gregorian::date(1998, 3, 8)));
|
||||
BOOST_CHECK_EQUAL(schedule.getStartTime(), boost::posix_time::ptime(boost::gregorian::date(1998, 3, 8)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user