diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-08-26 19:20:25 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-08-26 19:33:37 +0200 |
commit | 98e28fe63cbb1bb1555121d6b3d04257e5fc183f (patch) | |
tree | dfec8c791335459a7c5dcca18a0f95d421182931 /streamingvisitors | |
parent | 7bf97a82b6a7efb54d48bc6ebfa41bf7b74f8ad7 (diff) |
Use more smart pointers in DynamicDocsumConfig, ResultConfig and KeywordExtractor.
Diffstat (limited to 'streamingvisitors')
-rw-r--r-- | streamingvisitors/src/vespa/vsm/vsm/docsumconfig.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/streamingvisitors/src/vespa/vsm/vsm/docsumconfig.cpp b/streamingvisitors/src/vespa/vsm/vsm/docsumconfig.cpp index fac801550d4..bfa43038ea2 100644 --- a/streamingvisitors/src/vespa/vsm/vsm/docsumconfig.cpp +++ b/streamingvisitors/src/vespa/vsm/vsm/docsumconfig.cpp @@ -60,11 +60,7 @@ DynamicDocsumConfig::createFieldWriter(const string & fieldName, const string & } else if ((overrideName == "attribute") || (overrideName == "attributecombiner")) { if (!argument.empty() && argument != fieldName) { - auto fw = std::make_unique<CopyDFW>(); - const ResultConfig& resultConfig = getResultConfig(); - if (fw->Init(resultConfig, argument.c_str())) { - fieldWriter = std::move(fw); - } + fieldWriter = std::make_unique<CopyDFW>(argument); } rc = true; } else if (overrideName == "geopos") { |