diff --git a/core/tests/Variable/TestVariable.cpp b/core/tests/Variable/TestVariable.cpp index 7511a24..e3389e8 100644 --- a/core/tests/Variable/TestVariable.cpp +++ b/core/tests/Variable/TestVariable.cpp @@ -302,7 +302,7 @@ void TestVariable::testNbPoints_data() // Doubles cache but don't add data series (expected nb points don't change) cacheRange = SqpRange{date(2017, 1, 1, 12, 0, 0), date(2017, 1, 1, 12, 0, 19)}; - operations.push_back({cacheRange, nullptr, 20}); + operations.push_back({cacheRange, dataSeries(INVALID_RANGE), 20}); // Doubles cache and data series (expected nb points change) cacheRange = SqpRange{date(2017, 1, 1, 12, 0, 0), date(2017, 1, 1, 12, 0, 19)}; @@ -310,7 +310,7 @@ void TestVariable::testNbPoints_data() // Decreases cache (expected nb points decreases as the series is purged) cacheRange = SqpRange{date(2017, 1, 1, 12, 0, 5), date(2017, 1, 1, 12, 0, 9)}; - operations.push_back({cacheRange, nullptr, 10}); + operations.push_back({cacheRange, dataSeries(INVALID_RANGE), 10}); QTest::newRow("nbPoints1") << operations; }