Can IDocumentationProvider::homePage be non-const?
Milian Wolff
mail at milianw.de
Mon Nov 30 17:31:12 UTC 2009
On Monday, 30. November 2009 18:05:51 David Nolden wrote:
> 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.
Even though the returned value can change something in the documentation
provider?
But I'll do it for now with the cast, thanks.
--
Milian Wolff
mail at milianw.de
http://milianw.de
More information about the KDevelop-devel
mailing list