diff options
author | Henning Baldersheim <balder@oath.com> | 2018-08-15 08:56:23 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-08-15 08:56:23 +0200 |
commit | 312f39cb227d195ad0f7f1dd61e28328e570f33a (patch) | |
tree | 233c1242c2242ec2ab2624edeedbbe3776ec3f88 /searchcore | |
parent | 5dbed839ece280b968b4a0f9dc06fc53f384cb6c (diff) |
std::make_shared
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/reprocessing/attribute_reprocessing_initializer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/reprocessing/attribute_reprocessing_initializer.cpp b/searchcore/src/vespa/searchcore/proton/reprocessing/attribute_reprocessing_initializer.cpp index 1df812b0c61..afae967c4fb 100644 --- a/searchcore/src/vespa/searchcore/proton/reprocessing/attribute_reprocessing_initializer.cpp +++ b/searchcore/src/vespa/searchcore/proton/reprocessing/attribute_reprocessing_initializer.cpp @@ -76,10 +76,9 @@ getAttributesToPopulate(const ARIConfig &newCfg, FilterAttributeManager::AttributeSet attrsToPopulate = getAttributeSetToPopulate(newCfg, oldCfg, inspector, serialNum); if (!attrsToPopulate.empty()) { - return IReprocessingReader::SP(new AttributePopulator - (IAttributeManager::SP(new FilterAttributeManager - (attrsToPopulate, newCfg.getAttrMgr())), - ATTRIBUTE_INIT_SERIAL, subDbName, serialNum)); + return std::make_shared<AttributePopulator> + (std::make_shared<FilterAttributeManager>(attrsToPopulate, newCfg.getAttrMgr()), + ATTRIBUTE_INIT_SERIAL, subDbName, serialNum); } return IReprocessingReader::SP(); } |