[webkit-dev] Do we have a style preference about const member functions?

Ryosuke Niwa rniwa at webkit.org
Thu Jun 2 01:21:59 PDT 2011


On Tue, May 31, 2011 at 12:08 PM, Geoffrey Garen <ggaren at apple.com> wrote:
>
> So, perhaps the real style question we should answer is when to use const
> pointers / references, since the answer to when to use const member
> functions will follow from it.
>
> What are some good examples of existing code that meaningfully uses a const
> pointer or reference? (Something other than, say, the obligatory const& in a
> copy constructor.)
>

I think const reference to String and const pointers to
CSSStyleDeclaration/CSSMutableStyleDeclaration are good examples.

- Ryosuke
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110602/0d0e4800/attachment.html>


More information about the webkit-dev mailing list