diff --git a/generator/templates/mock_webgpu.cpp b/generator/templates/mock_webgpu.cpp index 4f48551fa4..6b8c5a6863 100644 --- a/generator/templates/mock_webgpu.cpp +++ b/generator/templates/mock_webgpu.cpp @@ -149,8 +149,9 @@ void ProcTableAsClass::CallFenceOnCompletionCallback(WGPUFence fence, } {% endfor %} -MockProcTable::MockProcTable() { -} +MockProcTable::MockProcTable() = default; + +MockProcTable::~MockProcTable() = default; void MockProcTable::IgnoreAllReleaseCalls() { {% for type in by_category["object"] %} diff --git a/generator/templates/mock_webgpu.h b/generator/templates/mock_webgpu.h index bdef4fbe29..78b9b78ef3 100644 --- a/generator/templates/mock_webgpu.h +++ b/generator/templates/mock_webgpu.h @@ -116,6 +116,7 @@ class ProcTableAsClass { class MockProcTable : public ProcTableAsClass { public: MockProcTable(); + ~MockProcTable() override; void IgnoreAllReleaseCalls();