FairyGUI-cocos2dx icon indicating copy to clipboard operation
FairyGUI-cocos2dx copied to clipboard

Missing "Virtual" and "Override" keyword in FUIContainer.h file

Open MHassamChaudhary opened this issue 2 years ago • 1 comments

The current code which is written is

**void setGlobalZOrder(float globalZOrder);**

but it is the virtual function that have to be marked with "Override" keyword. So it should be

**virtual void setGlobalZOrder(float globalZOrder) override;**

Issue that I faced:

  • If we skip those keywords then the build take a lot of time to build the project as this 1 line function has 1k+ warning that our compiler must go through it.

Note : If I just marked it as virtual and override then the build time reduce ~30 mint.

Screenshot 2022-06-28 at 11 20 59 AM

MHassamChaudhary avatar Jun 28 '22 06:06 MHassamChaudhary

Is there a problem with the version of cocos? I see that this function in CCNode has a virtual flag

xiaoguzhu avatar Sep 29 '22 08:09 xiaoguzhu