diff options
author | Sven Gothel <[email protected]> | 2022-05-05 10:11:22 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-05-05 10:11:22 +0200 |
commit | 47725fa5336e94005aea61606991c8dd822c1923 (patch) | |
tree | 4d5d57bc67fcbb0ab1b3a8e6f08160a2392a1b69 /trial | |
parent | 9c4c81350696f0eb16dc5c04930669d24aaf279c (diff) |
C++ Trial: DBTClient*: Mark all virtual functions override for consistency and mark super virtual requirement
Diffstat (limited to 'trial')
-rw-r--r-- | trial/direct_bt/dbt_client00.hpp | 4 | ||||
-rw-r--r-- | trial/direct_bt/dbt_client01.hpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/trial/direct_bt/dbt_client00.hpp b/trial/direct_bt/dbt_client00.hpp index ba0eab27..abf56906 100644 --- a/trial/direct_bt/dbt_client00.hpp +++ b/trial/direct_bt/dbt_client00.hpp @@ -601,13 +601,13 @@ class DBTClient00 : public DBTClientTest { return status; } - void close(const std::string& msg) { + void close(const std::string& msg) override { fprintf_td(stderr, "****** Client Close: %s\n", msg.c_str()); clientAdapter->stopDiscovery(); clientAdapter->removeStatusListener( myAdapterStatusListener ); } - bool initAdapter(BTAdapterRef adapter) { + bool initAdapter(BTAdapterRef adapter) override { if( useAdapter != EUI48::ALL_DEVICE && useAdapter != adapter->getAddressAndType().address ) { fprintf_td(stderr, "initClientAdapter: Adapter not selected: %s\n", adapter->toString().c_str()); return false; diff --git a/trial/direct_bt/dbt_client01.hpp b/trial/direct_bt/dbt_client01.hpp index bd2fa424..7795bdb0 100644 --- a/trial/direct_bt/dbt_client01.hpp +++ b/trial/direct_bt/dbt_client01.hpp @@ -580,13 +580,13 @@ class DBTClient01 : public DBTClientTest { return status; } - void close(const std::string& msg) { + void close(const std::string& msg) override { fprintf_td(stderr, "****** Client Close: %s\n", msg.c_str()); clientAdapter->stopDiscovery(); clientAdapter->removeStatusListener( myAdapterStatusListener ); } - bool initAdapter(BTAdapterRef adapter) { + bool initAdapter(BTAdapterRef adapter) override { if( useAdapter != EUI48::ALL_DEVICE && useAdapter != adapter->getAddressAndType().address ) { fprintf_td(stderr, "initClientAdapter: Adapter not selected: %s\n", adapter->toString().c_str()); return false; |