Use reference instead of pointer

This commit is contained in:
Joakim Hove
2019-08-15 11:40:00 +02:00
parent ee482b9a5f
commit e3ade4dff9
4 changed files with 36 additions and 36 deletions

View File

@@ -231,8 +231,8 @@ BOOST_AUTO_TEST_CASE(parse_truncatedrecords_deckFilledWithDefaults) {
BOOST_CHECK(lastItem_1.defaultApplied(0));
BOOST_CHECK_EQUAL(lastItem_1.get< int >(0), 1);
auto* parserKeyword = parser.getParserKeywordFromDeckName("RADFIN4");
const auto& parserRecord = parserKeyword->getRecord(0);
const auto& parserKeyword = parser.getParserKeywordFromDeckName("RADFIN4");
const auto& parserRecord = parserKeyword.getRecord(0);
const auto& intItem = parserRecord.get("NWMAX");
BOOST_CHECK_EQUAL(18, radfin4_0_full.getRecord(0).getItem(10).get< int >(0));