closed #2384: Using static_cast instead of C cast in ExtensionsTest.cpp.

This commit is contained in:
James Chen 2013-07-09 10:18:15 +08:00
parent 3c394bba87
commit 85ef6b3b98
1 changed files with 2 additions and 2 deletions

View File

@ -99,14 +99,14 @@ void ExtensionsMainLayer::onEnter()
void ExtensionsMainLayer::ccTouchesBegan(Set *pTouches, Event *pEvent)
{
Touch* touch = (Touch*)pTouches->anyObject();
Touch* touch = static_cast<Touch*>(pTouches->anyObject());
_beginPos = touch->getLocation();
}
void ExtensionsMainLayer::ccTouchesMoved(Set *pTouches, Event *pEvent)
{
Touch* touch = (Touch*)pTouches->anyObject();
Touch* touch = static_cast<Touch*>(pTouches->anyObject());
Point touchLocation = touch->getLocation();
float nMoveY = touchLocation.y - _beginPos.y;