KSharedPtr changes

André Wöbbeking Woebbeking at onlinehome.de
Sat Jan 14 13:05:42 GMT 2006


On Saturday 14 January 2006 13:06, Boudewijn Rempt wrote:
> On Saturday 14 January 2006 12:54, Michel Hermier wrote:
> > One main disaventage of that is that we can't use the
> > "KSharedPtr<Foo> foo = bar;" syntax.
> > We must use the "KSharedPtr<Foo> foo(bar);" syntax.
>
> I'd hate that... We use this construction in so many places in Krita
> that it's going to be decided unfun to convert it everywhere.

It's worth this little inconvenience. The dangling pointer from Michel's 
example is much more anoying.




More information about the kde-core-devel mailing list