mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-07-05 11:40:07 +02:00
refactor: Mark btcsignals operator [[nodiscard]]
This is only relevant in case the result_type is not void, in which case the caller should either use the return value or mark it unused.
This commit is contained in:
@@ -200,7 +200,7 @@ public:
|
||||
* more than one callback is enabled.
|
||||
*/
|
||||
template <typename... Args>
|
||||
result_type operator()(Args&&... args) const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
|
||||
[[nodiscard]] result_type operator()(Args&&... args) const EXCLUSIVE_LOCKS_REQUIRED(!m_mutex)
|
||||
{
|
||||
std::vector<std::shared_ptr<connection_holder>> connections;
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user