mirror of
https://github.com/esphome/esphome.git
synced 2026-09-27 06:50:22 +00:00
Match the backend's user-provided default constructor convention
This commit is contained in:
@@ -18,8 +18,10 @@ namespace esphome::bluetooth_connection {
|
||||
class BluedroidServiceTable {
|
||||
public:
|
||||
~BluedroidServiceTable() { this->free(); }
|
||||
// Owns storage_; a copy would double-free.
|
||||
BluedroidServiceTable() = default;
|
||||
// Owns storage_; a copy would double-free. The default constructor is user
|
||||
// provided, not "= default", so value-initializing the enclosing backend
|
||||
// cannot zero-fill .bss that is already zero.
|
||||
BluedroidServiceTable() {}
|
||||
BluedroidServiceTable(const BluedroidServiceTable &) = delete;
|
||||
BluedroidServiceTable &operator=(const BluedroidServiceTable &) = delete;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user