summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEunki, Hong <eunkiki.hong@samsung.com>2023-07-31 10:32:04 +0900
committerEunki, Hong <eunkiki.hong@samsung.com>2023-07-31 10:33:44 +0900
commit49b4eda3332bd91d81cf07225125a3a940ec55c3 (patch)
treec36a59131a7cbb282a650ced39738c0caaab91f9 /examples
parent88a507f72fe49f46c7c12cf55885b5fb4472e90d (diff)
downloaddali-demo-49b4eda3332bd91d81cf07225125a3a940ec55c3.tar.gz
dali-demo-49b4eda3332bd91d81cf07225125a3a940ec55c3.tar.bz2
dali-demo-49b4eda3332bd91d81cf07225125a3a940ec55c3.zip
Fix svace/coverity issue at chipmunk app
Change-Id: Iea8ee57c49c15cf0f27bf165d6078a6a6f1934a5 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/chipmunk-physics/physics-demo-controller.cpp8
-rw-r--r--examples/chipmunk-physics/physics-impl.h4
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