mirror of
https://github.com/OpenBluetoothToolbox/SimpleBLE
synced 2025-05-08 13:36:04 +08:00
More linting
This commit is contained in:
parent
aaf94552fc
commit
83f30bb947
@ -21,9 +21,7 @@
|
||||
#define SAFE_RUN(code) \
|
||||
do { \
|
||||
try { \
|
||||
{ \
|
||||
code \
|
||||
} \
|
||||
{ code } \
|
||||
} catch (const std::exception& ex) { \
|
||||
SIMPLEBLE_LOG_ERROR(fmt::format("Exception within code block: {}", ex.what())); \
|
||||
} catch (...) { \
|
||||
|
@ -7,7 +7,7 @@ namespace SimpleBLE {
|
||||
|
||||
class BackendPlain : public BackendSingleton<BackendPlain> {
|
||||
public:
|
||||
BackendPlain(buildToken){};
|
||||
BackendPlain(buildToken) {};
|
||||
virtual ~BackendPlain() = default;
|
||||
|
||||
virtual SharedPtrVector<AdapterBase> get_adapters() override;
|
||||
|
@ -33,7 +33,7 @@ class RustyAdapter : private SimpleBLE::Adapter {
|
||||
virtual ~RustyAdapter() { _internal.reset(); }
|
||||
|
||||
RustyAdapter(SimpleBLE::Adapter adapter)
|
||||
: _internal(new SimpleBLE::Adapter(adapter)), _adapter(std::make_unique<SimpleRsBLE::Adapter*>()){};
|
||||
: _internal(new SimpleBLE::Adapter(adapter)), _adapter(std::make_unique<SimpleRsBLE::Adapter*>()) {};
|
||||
|
||||
void link(SimpleRsBLE::Adapter& target) const;
|
||||
void unlink() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user