diff options
Diffstat (limited to 'searchlib')
4 files changed, 6 insertions, 6 deletions
diff --git a/searchlib/src/vespa/searchlib/diskindex/diskindex.cpp b/searchlib/src/vespa/searchlib/diskindex/diskindex.cpp index eb8054317dc..aa3859c7fbf 100644 --- a/searchlib/src/vespa/searchlib/diskindex/diskindex.cpp +++ b/searchlib/src/vespa/searchlib/diskindex/diskindex.cpp @@ -27,7 +27,7 @@ void swap(DiskIndex::LookupResult & a, DiskIndex::LookupResult & b) a.swap(b); } -DiskIndex::LookupResult::LookupResult() +DiskIndex::LookupResult::LookupResult() noexcept : indexId(0u), wordNum(0), counts(), diff --git a/searchlib/src/vespa/searchlib/diskindex/diskindex.h b/searchlib/src/vespa/searchlib/diskindex/diskindex.h index 12be8979cc3..0869bccc307 100644 --- a/searchlib/src/vespa/searchlib/diskindex/diskindex.h +++ b/searchlib/src/vespa/searchlib/diskindex/diskindex.h @@ -31,7 +31,7 @@ public: index::PostingListCounts counts; uint64_t bitOffset; typedef std::unique_ptr<LookupResult> UP; - LookupResult(); + LookupResult() noexcept; bool valid() const { return counts._numDocs > 0; } void swap(LookupResult & rhs) { std::swap(indexId , rhs.indexId); diff --git a/searchlib/src/vespa/searchlib/features/termeditdistancefeature.cpp b/searchlib/src/vespa/searchlib/features/termeditdistancefeature.cpp index 41b441d2915..d85d7132feb 100644 --- a/searchlib/src/vespa/searchlib/features/termeditdistancefeature.cpp +++ b/searchlib/src/vespa/searchlib/features/termeditdistancefeature.cpp @@ -17,14 +17,14 @@ namespace search::features { //--------------------------------------------------------------------------------------------------------------------- // TedCell //--------------------------------------------------------------------------------------------------------------------- -TedCell::TedCell() : +TedCell::TedCell() noexcept : cost(util::FEATURE_MAX), numDel(0), numIns(0), numSub(0) {} -TedCell::TedCell(feature_t argCost, uint32_t argNumDel, uint32_t argNumIns, uint32_t argNumSub) : +TedCell::TedCell(feature_t argCost, uint32_t argNumDel, uint32_t argNumIns, uint32_t argNumSub) noexcept : cost(argCost), numDel(argNumDel), numIns(argNumIns), diff --git a/searchlib/src/vespa/searchlib/features/termeditdistancefeature.h b/searchlib/src/vespa/searchlib/features/termeditdistancefeature.h index e86c2a909f1..3f49dfb802e 100644 --- a/searchlib/src/vespa/searchlib/features/termeditdistancefeature.h +++ b/searchlib/src/vespa/searchlib/features/termeditdistancefeature.h @@ -12,8 +12,8 @@ namespace search::features { */ class TedCell { public: - TedCell(); - TedCell(feature_t cost, uint32_t numDel, uint32_t numIns, uint32_t numSub); + TedCell() noexcept; + TedCell(feature_t cost, uint32_t numDel, uint32_t numIns, uint32_t numSub) noexcept; feature_t cost; // The cost at this point. uint32_t numDel; // The number of deletions to get here. |