summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorSimon Wenner <simon@wenner.ch>2018-10-04 00:58:37 +0200
committerRémi Verschelde <rverschelde@gmail.com>2018-10-04 18:16:04 +0200
commit10718b096100b61b9cfcf0e668af7b94f4bbe00a (patch)
tree2a13b871e87479809302e0329977d5514a605a88 /editor
parent3ca2afc09c7a945b8491d8a085203142b2562833 (diff)
downloadredot-engine-10718b096100b61b9cfcf0e668af7b94f4bbe00a.tar.gz
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
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h
index 6a788692d7..4f8cc6ab5e 100644
--- a/editor/plugins/canvas_item_editor_plugin.h
+++ b/editor/plugins/canvas_item_editor_plugin.h
@@ -280,6 +280,10 @@ private:
Transform2D xform;
float length;
uint64_t last_pass;
+
+ BoneList() :
+ length(0.f),
+ last_pass(0) {}
};
uint64_t bone_last_frame;