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

List:       kde-devel
Subject:    Re: DNS based service discovery
From:       Richard Smith <kde () metafoo ! co ! uk>
Date:       2004-10-29 0:38:27
Message-ID: 200410290138.27390.kde () metafoo ! co ! uk
[Download RAW message or body]

On Thursday 28 October 2004 20:46, Thiago Macieira wrote:
> Jakub Stachowski wrote:
> >> ServiceList is descended from QPtrList. Please make it a QValueList,
> >> since the QPtr* are going away in Qt4 anyways.
> >
> >So I should use QValueList<ServiceBase*> ?
>
> No, QValueList<ServiceBase>

Um, are you sure? Other classes (such as RemoteService) are derived from 
ServiceBase. A QValueList<ServiceBase> stores ServiceBase objects, not 
pointers to derived objects. This will slice the derived parts off the 
objects, and will cause breakage.
-- 
Thanks,
Richard
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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