Fix compiler warning (#2038)

Fix compiler warning: 'inconsistent-missing-override'
This commit is contained in:
Yinqiang Zhu 2022-03-24 21:38:54 +08:00 committed by GitHub
parent 5bde0730d3
commit 763204a2b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,15 +104,15 @@ namespace spine {
virtual ~DefaultSpineExtension();
protected:
virtual void *_alloc(size_t size, const char *file, int line);
virtual void *_alloc(size_t size, const char *file, int line) override;
virtual void *_calloc(size_t size, const char *file, int line);
virtual void *_calloc(size_t size, const char *file, int line) override;
virtual void *_realloc(void *ptr, size_t size, const char *file, int line);
virtual void *_realloc(void *ptr, size_t size, const char *file, int line) override;
virtual void _free(void *mem, const char *file, int line);
virtual void _free(void *mem, const char *file, int line) override;
virtual char *_readFile(const String &path, int *length);
virtual char *_readFile(const String &path, int *length) override;
};
// This function is to be implemented by engine specific runtimes to provide