aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-07-03 19:57:29 +0200
committerTor Egge <Tor.Egge@online.no>2022-07-03 19:57:29 +0200
commitb8eb1f71027af11b6db7d70d2ea10b4e98c569d4 (patch)
treea39b3852c3429ff8dfc5d9938ab85958e02e5ac5 /searchlib
parenta8d3000600c89a0f0cb9c77e88dd8f64516c591d (diff)
Add noexcept specifier.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/diskindex/diskindex.cpp2
-rw-r--r--searchlib/src/vespa/searchlib/diskindex/diskindex.h2
-rw-r--r--searchlib/src/vespa/searchlib/features/termeditdistancefeature.cpp4
-rw-r--r--searchlib/src/vespa/searchlib/features/termeditdistancefeature.h4
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.