Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Perform subclass forward declaration even if header is empty #499
Only now i discovered that commit 81a138b removes a bug/feature that some of my project files rely on. Before that commit a subclass forward declaration was always done, now it is only done if the subclass also defines a header.
My affected project files use e.g. a book control to which i add pages which are panels but i use the subclass feature to replace these with other classes. These other classes i define further down in the project file so i don't have (and can't if i don't want to depend on the filename of the project) to define a header for them. Because i generate C++ code and the subclasses get declared after the book control this doesn't compile.
This PR restores the behavior to generate forward declarations even with no defined header but only if forward declaration is enabled. This keeps the current feature to remove redundant forward declarations but adds the feature to enable them if they are required, what wxFormBuilder cannot detect by itself.