diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-09-01 13:04:23 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-09-01 13:04:23 +0200 |
commit | aadbfaa691839a5a8f5f345eb021083cbb122f3e (patch) | |
tree | 4afa0fb3088c98a9962b068da9b24a940e9e38c6 /searchsummary | |
parent | 4cc20245454156264d2481f563a800542559469d (diff) |
Add noexcept specifier to search::docsummary::KeywordExtractor::IndexPrefix constructor.
Diffstat (limited to 'searchsummary')
-rw-r--r-- | searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.cpp | 2 | ||||
-rw-r--r-- | searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.cpp b/searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.cpp index 8c0acda64e4..e5e0d20832b 100644 --- a/searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.cpp +++ b/searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.cpp @@ -33,7 +33,7 @@ KeywordExtractor::IsLegalIndexName(const char *idxName) const return _legalIndexes.find(idxName) != _legalIndexes.end(); } -KeywordExtractor::IndexPrefix::IndexPrefix(const char *prefix) +KeywordExtractor::IndexPrefix::IndexPrefix(const char *prefix) noexcept : _prefix(prefix) { } diff --git a/searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.h b/searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.h index 74e9575b7c4..5f87de762f9 100644 --- a/searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.h +++ b/searchsummary/src/vespa/searchsummary/docsummary/keywordextractor.h @@ -16,7 +16,7 @@ public: { vespalib::string _prefix; public: - explicit IndexPrefix(const char *prefix); + explicit IndexPrefix(const char *prefix) noexcept; ~IndexPrefix(); bool Match(const char *idxName) const; const vespalib::string& get_prefix() const noexcept { return _prefix; } |