static private d-pointer-thing in editor/editorintegrator.h?

Andreas Pakulat apaku at gmx.de
Sat May 19 17:46:16 UTC 2007


On 19.05.07 09:40:09, Alexander Dymo wrote:
> On 5/19/07, Andreas Pakulat <apaku at gmx.de> wrote:
> > could someone please enlighten me why the private d-pointer in
> > editorintegrator is
> >
> > a) protected
> > b) static
> 
> I don't know why it's protected. But looks like it's static to make
> EditorIntegrator work as a static object so that duchain is not forced
> to link to interfaces (shell).
> In theory, it should be possible to take cpp parser, duchain and use
> it completely independently from kdevelop.

Hmm, but can't that be done by just not using the cppeditorintegrator? I
mean just leave out that class...

> The problem is that at least kdevplatformeditor has to be linked in
> and that does mean the dependency on some of the platform libraries.

Yeap. But still I don't quite understand why a normal private class is
not enough. Also nothing uses the protected static data() method in
KDevelop, so I'm thinking about making it a real private dpointer
instead.

Andreas

-- 
You have a strong desire for a home and your family interests come first.




More information about the KDevelop-devel mailing list