From e79b72de8f2b6ca08a76f10fa13309967faec802 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 27 May 2021 22:16:10 +0300 Subject: [PATCH] libktorrent: ISO C++17 conformance fix upstream commit: https://github.com/KDE/libktorrent/commit/54aeec19aca29511af85e867043f4add905976ac Signed-off-by: Ivailo Monev --- libktorrent/src/dht/kbucket.cpp | 2 +- libktorrent/src/dht/kbucket.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libktorrent/src/dht/kbucket.cpp b/libktorrent/src/dht/kbucket.cpp index a3b053c8..897ca899 100644 --- a/libktorrent/src/dht/kbucket.cpp +++ b/libktorrent/src/dht/kbucket.cpp @@ -81,7 +81,7 @@ namespace dht } - std::pair KBucket::split() throw (KBucket::UnableToSplit) + std::pair KBucket::split() noexcept(false) { dht::Key m = dht::Key::mid(min_key, max_key); if(m == min_key || m + 1 == max_key) diff --git a/libktorrent/src/dht/kbucket.h b/libktorrent/src/dht/kbucket.h index 8a52b6be..be63ed6c 100644 --- a/libktorrent/src/dht/kbucket.h +++ b/libktorrent/src/dht/kbucket.h @@ -84,7 +84,7 @@ namespace dht * @return A pair of KBucket's * @throw UnableToSplit if something goes wrong */ - std::pair split() throw (UnableToSplit); + std::pair split() noexcept(false); /** * Inserts an entry into the bucket.