From cbefe88e87d1d9241a0d53492f52d6d0093cec7c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 12 Jan 2022 05:21:51 +0100 Subject: BTGattHandler: Add 'noexcept' to l2capReader Callbacks --- src/direct_bt/BTGattHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/direct_bt/BTGattHandler.cpp') diff --git a/src/direct_bt/BTGattHandler.cpp b/src/direct_bt/BTGattHandler.cpp index 5ec9a88c..620fb00d 100644 --- a/src/direct_bt/BTGattHandler.cpp +++ b/src/direct_bt/BTGattHandler.cpp @@ -1014,7 +1014,7 @@ void BTGattHandler::replyAttPDUReq(std::unique_ptr && pdu) { } } -void BTGattHandler::l2capReaderWork(jau::service_runner& sr) { +void BTGattHandler::l2capReaderWork(jau::service_runner& sr) noexcept { jau::snsize_t len; if( !validateConnected() ) { ERR_PRINT("GATTHandler::reader: Invalid IO state -> Stop"); @@ -1103,12 +1103,12 @@ void BTGattHandler::l2capReaderWork(jau::service_runner& sr) { } } -void BTGattHandler::l2capReaderEndLocked(jau::service_runner& sr) { +void BTGattHandler::l2capReaderEndLocked(jau::service_runner& sr) noexcept { (void)sr; WORDY_PRINT("GATTHandler::reader: Ended. Ring has %u entries flushed", attPDURing.size()); attPDURing.clear(); } -void BTGattHandler::l2capReaderEndFinal(jau::service_runner& sr) { +void BTGattHandler::l2capReaderEndFinal(jau::service_runner& sr) noexcept { (void)sr; disconnect(true /* disconnectDevice */, has_ioerror); } -- cgit v1.2.3