You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Fix some cppcheck errors
cppcheck: fix broken pre-processor statement cppcheck: fix Uninitialized struct members in canvas editor plugin cppcheck: fix uninitialized struct member: method_api.is_virtual
This commit is contained in:
committed by
Rémi Verschelde
parent
3ca2afc09c
commit
10718b0961
@@ -118,7 +118,6 @@ protected:
|
|||||||
|
|
||||||
p_rid._data->_owner = NULL;
|
p_rid._data->_owner = NULL;
|
||||||
}
|
}
|
||||||
#
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -280,6 +280,10 @@ private:
|
|||||||
Transform2D xform;
|
Transform2D xform;
|
||||||
float length;
|
float length;
|
||||||
uint64_t last_pass;
|
uint64_t last_pass;
|
||||||
|
|
||||||
|
BoneList() :
|
||||||
|
length(0.f),
|
||||||
|
last_pass(0) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
uint64_t bone_last_frame;
|
uint64_t bone_last_frame;
|
||||||
|
|||||||
@@ -292,6 +292,7 @@ List<ClassAPI> generate_c_api_classes() {
|
|||||||
method_api.has_varargs = method_bind && method_bind->is_vararg();
|
method_api.has_varargs = method_bind && method_bind->is_vararg();
|
||||||
|
|
||||||
// Method flags
|
// Method flags
|
||||||
|
method_api.is_virtual = false;
|
||||||
if (method_info.flags) {
|
if (method_info.flags) {
|
||||||
const uint32_t flags = method_info.flags;
|
const uint32_t flags = method_info.flags;
|
||||||
method_api.is_editor = flags & METHOD_FLAG_EDITOR;
|
method_api.is_editor = flags & METHOD_FLAG_EDITOR;
|
||||||
|
|||||||
Reference in New Issue
Block a user