Skip to content

Commit

Permalink
Disallow copy-construction of Device objects. (#7719)
Browse files Browse the repository at this point in the history
The lifetime of these objects is entirely managed by DeviceController
and copy-constructing them does not make any sense.
  • Loading branch information
bzbarsky-apple authored Jun 18, 2021
1 parent 838c3db commit 01ee80e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controller/CHIPDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class DLL_EXPORT Device : public Messaging::ExchangeDelegate, public SessionEsta
{
public:
~Device();
Device() = default;
Device(const Device &) = delete;

enum class PairingWindowOption
{
Expand Down

0 comments on commit 01ee80e

Please sign in to comment.