fix: opaque-pointer declarations need qmetatype include and single ownership

The scripted Q_DECLARE_OPAQUE_POINTER sweep missed the QtCore/qmetatype.h
include (cascade of stdlib errors) and declared a few types in two headers
(redefinition of IsPointerDeclaredOpaque). Include qmetatype.h everywhere
and declare each handle in exactly one header.
This commit is contained in:
2026-08-02 18:25:52 +08:00
parent 824e352da1
commit 393b650fb4
14 changed files with 13 additions and 6 deletions
+1 -2
View File
@@ -339,8 +339,7 @@ OAKENGINE_API int oakengine_project_set_color_reference_space(
#ifdef __cplusplus
}
Q_DECLARE_OPAQUE_POINTER(OakEngineNode *)
Q_DECLARE_OPAQUE_POINTER(OakEnginePlaybackCache *)
#include <QtCore/qmetatype.h>
Q_DECLARE_OPAQUE_POINTER(OakEngineProject *)
Q_DECLARE_OPAQUE_POINTER(OakEngineSequence *)
#endif