Base classes declaration under DUChains

Hamish Rodda rodda at kde.org
Sat Mar 14 11:48:41 UTC 2009


On Saturday 14 March 2009 19:54:51 Lior Mualem wrote:
> > Hrm, patch was empty in my mail client.
>
> I'll just inline it in the mail - it's a one liner:
>
> Index: classmodel.cpp
> ===================================================================
> --- classmodel.cpp    (revision 939163)
> +++ classmodel.cpp    (working copy)
> @@ -397,7 +397,7 @@
>
>    for(uint a = 0; a < itemCount; ++a) {
>      // Don't insert unknown or forward declarations into the class browser
> -    if (items[a].kind == CodeModelItem::Unknown || items[a].kind ==
> CodeModelItem::ForwardDeclaration)
> +    if ( (items[a].kind & CodeModelItem::Unknown) || (items[a].kind &
> CodeModelItem::ForwardDeclaration) )
>        continue;

Oh... right!  I've been swearing at this bug for ages, had no idea it was a 
bitfield.  Thanks :)

Cheers,
Hamish.




More information about the KDevelop-devel mailing list