Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
MHassamChaudhary opened this issue Jun 28, 2022 · 1 comment
Open

Comments

@MHassamChaudhary
Copy link

MHassamChaudhary commented Jun 28, 2022

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 MHassamChaudhary changed the title Missing "Override" keyword in FUIContainer.h file Missing "Virtual" and "Override" keyword in FUIContainer.h file Jun 28, 2022
@xiaoguzhu
Copy link
Member

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants