[Webkit-unassigned] [Bug 42098] The WebCore::Document::head() method should be const.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 12 12:38:23 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=42098
--- Comment #2 from Darin Adler <darin at apple.com> 2010-07-12 12:38:23 PST ---
(From update of attachment 61251)
Why should this be const? You have a const pointer to a document and you get a non-const pointer to one of the elements of that document? I think we should not use const so much on classes like Document* that are part of a tree. It doesn't make sense to have a const pointer to something but then call firstChild()->parent() and get back a non-const pointer to the same thing. I suggest going the opposite direction and phasing out use of const Document*.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list