From 511b58a3b2a733ac9906cbbeb3e090181e8d0a46 Mon Sep 17 00:00:00 2001 From: zilongshanren Date: Mon, 21 Sep 2015 09:51:27 +0800 Subject: [PATCH] fix missing override keyword --- cocos/physics/CCPhysicsBody.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/physics/CCPhysicsBody.h b/cocos/physics/CCPhysicsBody.h index b16722a73c..43193d3b5a 100644 --- a/cocos/physics/CCPhysicsBody.h +++ b/cocos/physics/CCPhysicsBody.h @@ -490,7 +490,7 @@ protected: PhysicsBody(); virtual ~PhysicsBody(); - virtual bool init(); + virtual bool init()override; virtual void setPosition(float positionX, float positionY); @@ -498,7 +498,7 @@ protected: virtual void setScale(float scaleX, float scaleY); - void update(float delta); + void update(float delta)override; void removeJoint(PhysicsJoint* joint);