[Webkit-unassigned] [Bug 24536] Cannot resolve include file

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 13 12:32:38 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=24536





------- Comment #7 from norbert.leser at nokia.com  2009-03-13 12:32 PDT -------
(In reply to comment #6)
> Actually, looking at ProfileGenerator, I don’t understand why this line of code
> compiles:
> 
>         PassRefPtr<Profile> profile() const { return m_profile; }
> 
> Without a definition of the class Profile, this should fail. I have no idea why
> this is working with other compilers. The correct fix for this is to change
> ProfileGenerator.h to include Profile.h, though, not to reorder includes
> ProfileGenerator.cpp.
> 

That is fine with me. That would have been my alternate suggestion as well, if
you want to keep the order in the implementation file. I believe, the class
Profile forward declaration will be redundant then and can be removed.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list