[Telepathy] [Fwd: tp-qt4 qsharedpointer usage]
Andre Moreira Magalhaes
andre.magalhaes at collabora.co.uk
Wed Mar 18 08:33:35 PDT 2009
Ian Monroe wrote:
> I wrote a bug about the issue last month:
> https://bugs.freedesktop.org/show_bug.cgi?id=20299
>
> Like I said in the bug report, using KSharedPtr would allow us to always
> return a KSharedPtr since the counting occurs in the object itself (via
> QSharedPointer), instead of an external pointer type.
>
> I think (but am not positive) that KSharedPtr is the same thing as
> QExplictlySharedDataPointer, just without a detach call. So we could use
> QExplictlySharedDataPointer and ignore detach.
>
Hmm nice, it seems QExplicitlySharedDataPointer fits the purpose, I will
try it
BR
More information about the telepathy
mailing list