issue #2373: Removing inline for virtual function. Adding more const getter functions.

This commit is contained in:
James Chen 2013-07-05 13:58:59 +08:00
parent 9d2152b513
commit d2746bbe90
6 changed files with 11 additions and 11 deletions

View File

@ -1 +1 @@
adc886b11ba99ac25a10739785bb0986e175a1a9
a99b08b2ffceb676a19dbcca403053c395c80351

View File

@ -263,8 +263,8 @@ public:
/// @name Functions inherited from TextureProtocol
virtual void setTexture(Texture2D *texture);
virtual Texture2D* getTexture(void);
inline void setBlendFunc(const ccBlendFunc &blendFunc) { _blendFunc = blendFunc; }
inline const ccBlendFunc& getBlendFunc(void) const { return _blendFunc; }
virtual void setBlendFunc(const ccBlendFunc &blendFunc) { _blendFunc = blendFunc; }
virtual const ccBlendFunc& getBlendFunc(void) const { return _blendFunc; }
/// @}
/// @{
@ -400,17 +400,17 @@ public:
*
* @return true if the sprite needs to be updated in the Atlas, false otherwise.
*/
inline virtual bool isDirty(void) const { return _dirty; }
virtual bool isDirty(void) const { return _dirty; }
/**
* Makes the Sprite to be updated in the Atlas.
*/
inline virtual void setDirty(bool bDirty) { _dirty = bDirty; }
virtual void setDirty(bool bDirty) { _dirty = bDirty; }
/**
* Returns the quad (tex coords, vertex coords and color) information.
*/
inline ccV3F_C4B_T2F_Quad getQuad(void) { return _quad; }
inline ccV3F_C4B_T2F_Quad getQuad(void) const { return _quad; }
/**
* Returns whether or not the texture rectangle is rotated.

View File

@ -120,8 +120,8 @@ public:
*/
virtual void updateOffsetPoint();
inline void setBlendFunc(const ccBlendFunc& blendFunc) { _blendFunc = blendFunc; }
inline const ccBlendFunc& getBlendFunc(void) const { return _blendFunc; }
virtual void setBlendFunc(const ccBlendFunc& blendFunc) { _blendFunc = blendFunc; }
virtual const ccBlendFunc& getBlendFunc(void) const { return _blendFunc; }
protected:

View File

@ -150,7 +150,7 @@ PhysicsSprite* PhysicsSprite::create(const char *pszFileName, const Rect& rect)
// this method will only get called if the sprite is batched.
// return YES if the physic's values (angles, position ) changed.
// If you return NO, then nodeToParentTransform won't be called.
bool PhysicsSprite::isDirty()
bool PhysicsSprite::isDirty() const
{
return true;
}

View File

@ -90,7 +90,7 @@ public:
*/
static PhysicsSprite* create(const char *pszFileName, const Rect& rect);
virtual bool isDirty();
virtual bool isDirty() const;
/** Keep the sprite's rotation separate from the body. */
bool isIgnoreBodyRotation() const;

View File

@ -1 +1 @@
7dd3951b42436200ea99bfba88c15872e9f62825
678e714c9c548501d076d34e2af0b13619e0a5aa