@@ -146,6 +146,7 @@ class Foo
146
146
class Interface
147
147
{
148
148
public:
149
+ virtual ~Interface () {}
149
150
virtual void call0 () = 0;
150
151
virtual std::wstring call1 (const std::wstring& str1, const std::wstring& str2) = 0;
151
152
virtual void call_with_typed_array (size_t size, const void *) = 0;
@@ -170,11 +171,11 @@ class InterfaceWrapper : public emscripten::wrapper<Interface>
170
171
return call<void >(call0_symbol);
171
172
}
172
173
173
- std::wstring call1 (const std::wstring& str1, const std::wstring& str2) {
174
+ std::wstring call1 (const std::wstring& str1, const std::wstring& str2) override {
174
175
return call<std::wstring>(call1_symbol, str1, str2);
175
176
}
176
177
177
- void call_with_typed_array (size_t size, const void * data) {
178
+ void call_with_typed_array (size_t size, const void * data) override {
178
179
return call<void >(
179
180
call_with_typed_array_symbol,
180
181
emscripten::val::global (Uint8Array_symbol).new_ (
@@ -183,7 +184,7 @@ class InterfaceWrapper : public emscripten::wrapper<Interface>
183
184
size));
184
185
}
185
186
186
- void call_with_memory_view (size_t size, const unsigned int * data) {
187
+ void call_with_memory_view (size_t size, const unsigned int * data) override {
187
188
return call<void >(
188
189
call_with_memory_view_symbol,
189
190
emscripten::typed_memory_view (size, data));
0 commit comments