diff options
-rw-r--r-- | examples/chipmunk-physics/physics-demo-controller.cpp | 8 | ||||
-rw-r--r-- | examples/chipmunk-physics/physics-impl.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/chipmunk-physics/physics-demo-controller.cpp b/examples/chipmunk-physics/physics-demo-controller.cpp index 2faa3f82..14a9b0f5 100644 --- a/examples/chipmunk-physics/physics-demo-controller.cpp +++ b/examples/chipmunk-physics/physics-demo-controller.cpp @@ -340,10 +340,10 @@ private: PhysicsImpl mPhysicsImpl; Actor mPhysicsRoot; - cpBody* mMouseBody; - cpBody* mPickedBody; - int mPickedSavedState; - cpConstraint* mPickedConstraint; + cpBody* mMouseBody{nullptr}; + cpBody* mPickedBody{nullptr}; + cpConstraint* mPickedConstraint{nullptr}; + int mPickedSavedState = -1; /// 0 : Active, 1 : Sleeping bool mCtrlDown{false}; bool mAltDown{false}; diff --git a/examples/chipmunk-physics/physics-impl.h b/examples/chipmunk-physics/physics-impl.h index 519a7b9e..9420fa4b 100644 --- a/examples/chipmunk-physics/physics-impl.h +++ b/examples/chipmunk-physics/physics-impl.h @@ -158,7 +158,7 @@ public: bool mPhysicsIntegrateState{true}; bool mPhysicsDebugState{true}; - cpSpace* mSpace; + cpSpace* mSpace{nullptr}; cpShape* mLeftBound{nullptr}; cpShape* mRightBound{nullptr}; cpShape* mTopBound{nullptr}; @@ -169,7 +169,7 @@ public: Dali::Actor mPhysicsRoot; Dali::Vector2 mWorldOffset; - FrameCallback* mFrameCallback; + FrameCallback* mFrameCallback{nullptr}; }; #endif // DALI_PHYSICS_DEMO_PHYSICS_IMPL_H |