[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: Can IDocumentationProvider::homePage be non-const?
From: Milian Wolff <mail () milianw ! de>
Date: 2009-12-01 22:46:57
Message-ID: 200912012346.57373.mail () milianw ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Tuesday 01 December 2009 23:21:24 Aleix Pol wrote:
...
> > Hm, one thing I forgot:
> > should the IDocumentationProvider returned by m_provider be const? I mean
> > the
> > public API only consists of const stuff, but I still have to const_cast<>
> > it
> > before I can return it...
> >
> > And it looks like pointer to providers are used quite often in
> > KDevplatform (the documentation controller esp.).
> >
> > It would require lots of (simple) changes there, just to get rid of a
> > single
> > const_cast - is it worth it?
...
> What I do in Qt doc is to have a static member with the provider and return
> that one.
> That way every IDocumentation instance doesn't store a pointer to the
> provider (which is shared, of course).
Yeah, saw that but find it (personally) even worse than the static cast ;-) So
I'll leave it as-is.
Thanks Apol.
--
Milian Wolff
mail@milianw.de
http://milianw.de
["signature.asc" (application/pgp-signature)]
--
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic