Can IDocumentationProvider::homePage be non-const?

David Nolden zwabel at googlemail.com
Mon Nov 30 17:05:51 UTC 2009


Am Montag 30 November 2009 17:14:23 schrieb Milian Wolff:
> Hey all, esp. Apol:
> 
> Can I remove the "const" from IDocumentationProvider::homePage() ? Thing
>  is, that I want to pass "this" as parent/provider to the returned
>  IDocumentation. This fails, since this is const, but it should be
>  non-const.

That sounds exactly like a case for const-casting though. Sometimes it's just 
required. If you make "homePage()" non-const, then it will look like the call 
changes something in the documentation-provider.

Greetings, David




More information about the KDevelop-devel mailing list