File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ namespace react {
18
18
// pure destructors in C++ are odd. You would think they don't want an
19
19
// implementation, but in fact the linker requires one. Define them to be
20
20
// empty so that people don't count on them for any particular behaviour.
21
- IDestructible::~IDestructible () { }
22
- ILocalConnection::~ILocalConnection () { }
23
- IRemoteConnection::~IRemoteConnection () { }
21
+ IDestructible::~IDestructible () {}
22
+ ILocalConnection::~ILocalConnection () {}
23
+ IRemoteConnection::~IRemoteConnection () {}
24
+ IInspector::~IInspector () {}
24
25
25
26
namespace {
26
27
Original file line number Diff line number Diff line change @@ -44,11 +44,13 @@ class ILocalConnection : public IDestructible {
44
44
};
45
45
46
46
// / IInspector tracks debuggable JavaScript targets (pages).
47
- class IInspector {
47
+ class IInspector : public IDestructible {
48
48
public:
49
49
using ConnectFunc = std::function<std::unique_ptr<ILocalConnection>(
50
50
std::unique_ptr<IRemoteConnection>)>;
51
51
52
+ virtual ~IInspector () = 0 ;
53
+
52
54
// / addPage is called by the VM to add a page to the list of debuggable pages.
53
55
virtual int addPage (const std::string& title, ConnectFunc connectFunc) = 0;
54
56
You can’t perform that action at this time.
0 commit comments