Skip to content

Commit a8b60e9

Browse files
committed
Avoid warning (#516)
Force merge as it is breaking the CIs
1 parent 19ab351 commit a8b60e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Framework/src/TaskRunner.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,14 @@ void TaskRunner::loadTopologyConfig()
284284
{
285285
auto taskConfigTree = getTaskConfigTree();
286286
auto policiesFilePath = mConfigFile->get<std::string>("dataSamplingPolicyFile", "");
287-
ConfigurationInterface* config = policiesFilePath.empty() ? mConfigFile.get() : ConfigurationFactory::getConfiguration(policiesFilePath).get(); // todo make sure that it is ok to use the internal pointer of the unique_ptr
287+
std::shared_ptr<configuration::ConfigurationInterface> config = policiesFilePath.empty() ? mConfigFile : ConfigurationFactory::getConfiguration(policiesFilePath);
288288
auto dataSourceTree = taskConfigTree.get_child("dataSource");
289289
auto type = dataSourceTree.get<std::string>("type");
290290

291291
if (type == "dataSamplingPolicy") {
292292
auto policyName = dataSourceTree.get<std::string>("name");
293293
ILOG(Info, Support) << "policyName : " << policyName << ENDM;
294-
mInputSpecs = DataSampling::InputSpecsForPolicy(config, policyName);
294+
mInputSpecs = DataSampling::InputSpecsForPolicy(config.get(), policyName);
295295
} else if (type == "direct") {
296296
auto inputsQuery = dataSourceTree.get<std::string>("query");
297297
mInputSpecs = DataDescriptorQueryBuilder::parse(inputsQuery.c_str());

0 commit comments

Comments
 (0)