I will delete the virtual keyword from the definition,
but there is an existing method definition including inline and virtual
both:

inline virtual bool isDirty(void) { return m_bDirty; }

So I don't think there is any problem with the definition syntax.

Thanks,
Yongqin Liu


2013/5/24 go3k <notifications@github.com>

> In cocos2dx/sprite_nodes/CCSprite.h:
>
> > @@ -412,6 +412,21 @@ class CC_DLL CCSprite : public CCNodeRGBA, public CCTextureProtocol
> >       */
> >      inline ccV3F_C4B_T2F_Quad getQuad(void) { return m_sQuad; }
> >
> > +    /** whether or not the colors attribute of Quad has been updated */
> > +    inline virtual bool isQuadColorsDirty(void) { return m_bQuadColorsDirty; }
> > +    /** specify if the colors attribute of Quad has been updated */
> > +    inline virtual void setQuadColorsDirty(bool bDirty) { m_bQuadColorsDirty = bDirty; }
> > +
> > +    /** whether or not the verticles attribute of Quad has been updated */
> > +    inline virtual bool isQuadVerticlesDirty(void) { return m_bQuadVerticlesDirty; }
> > +    /** specify if the verticles attribute of Quad has been updated */
> > +    inline virtual void setQuadVerticlesDirty(bool bDirty) { m_bQuadVerticlesDirty = bDirty; }
> > +
> > +    /** whether or not the texCoords attribute of Quad has been updated */
> > +    inline virtual bool isQuadTexCoordsDirty(void) { return m_bQuadTexCoordsDirty; }
> > +    /** specify if the texCoords attribute of Quad has been updated */
> > +    inline virtual void setQuadTexCoordsDirty(bool bDirty) { m_bQuadTexCoordsDirty = bDirty; }
>
> inline and virtual can't incompatible at all in C++, this must be modified.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cocos2d/cocos2d-x/pull/2566/files#r4375161>
> .
>