Skip to content

Commit b410669

Browse files
committed
Mark the async_key_value_source constructor noexcept
It cannot throw an exception anyway and this calms down code inspection when creating a static instance
1 parent bdf2f8d commit b410669

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

userspace/async/async_key_value_source.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class async_key_value_source
9898
* value will live before being considered
9999
* "too old" and being pruned.
100100
*/
101-
async_key_value_source(uint64_t max_wait_ms, uint64_t ttl_ms);
101+
async_key_value_source(uint64_t max_wait_ms, uint64_t ttl_ms) noexcept;
102102

103103
async_key_value_source(const async_key_value_source&) = delete;
104104
async_key_value_source(async_key_value_source&&) = delete;

userspace/async/async_key_value_source.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace sysdig
3232
template<typename key_type, typename value_type>
3333
async_key_value_source<key_type, value_type>::async_key_value_source(
3434
const uint64_t max_wait_ms,
35-
const uint64_t ttl_ms):
35+
const uint64_t ttl_ms) noexcept:
3636
m_max_wait_ms(max_wait_ms),
3737
m_ttl_ms(ttl_ms),
3838
m_thread(),

0 commit comments

Comments
 (0)