[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Can't compile kdelibs/kio/ anymore
From:       Mario Weilguni <mweilguni () sime ! com>
Date:       2000-05-14 15:40:53
[Download RAW message or body]

Looks like a compiler bug to me:

if I change
   {
      KMimeType *newMimeType = dynamic_cast<KMimeType 
*>(static_cast<KSycocaEntry *>(*it));
      if (newMimeType)
         result.append( KMimeType::Ptr( newMimeType ) );
   }

to

   {
     void *p = (*it);
      KMimeType *newMimeType = dynamic_cast<KMimeType 
*>(static_cast<KSycocaEntry *>(*it));
      if (newMimeType)
         result.append( KMimeType::Ptr( newMimeType ) );
   }

it compiles fine, even if the "void *p" makes no sense at all.

Ciao,
	Mario

Am Son, 14 Mai 2000 schrieb Waldo Bastian:
> Well, it compiled fine for me, but that isn't going to help you :-)
>
> What compiler do you use?
>
> Can you try to call the cast operator of KSharedPtr manually? Can you check
> that you don't have an old version of kshared.h around somewhere?
>
> Cheers,
> Waldo
>
> On Sat, 13 May 2000, Mario Weilguni wrote:
> > No, does not help. Same error. I still wonder if this is a bug only
> > visible to me due to my system, or does anybody else have this too?
> >
> > Am Son, 14 Mai 2000 schrieb Waldo Bastian:
> > > On Sat, 13 May 2000, Mario Weilguni wrote:
> > > > A change around May 10 makes kservicetypefactory uncompileable for
> > > > me.
> > >
> > > I plead guilty :-]
> > >
> > > > The error is:
> > > >
> > > > kservicetypefactory.cpp:185: static_cast from `const
> > > > KSharedPtr<KSycocaEntry>' to `KSycocaEntry *'
> > > >
> > > > Am I the only one having this error?
> > >
> > > Does it help if you change the "ConstIterator" to a non-const
> > > "Iterator"?
> > >
> > > Cheers,
> > > Waldo

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic