Maybe it is interesting for you to look at the WebKit smart pointers. There is a document explaining them here:<br><br><a href="http://webkit.org/coding/RefPtr.html">http://webkit.org/coding/RefPtr.html</a><br><br>RefPtr is like more or less like an optimized QExplictlySharedDataPointer, and RefCounted is like QSharedData.<br>
<br>Kenneth<br><br><div class="gmail_quote">On Wed, Mar 18, 2009 at 12:33 PM, Andre Moreira Magalhaes <span dir="ltr"><<a href="mailto:andre.magalhaes@collabora.co.uk">andre.magalhaes@collabora.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">Ian Monroe wrote:<br>
> I wrote a bug about the issue last month:<br>
> <a href="https://bugs.freedesktop.org/show_bug.cgi?id=20299" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=20299</a><br>
><br>
> Like I said in the bug report, using KSharedPtr would allow us to always<br>
> return a KSharedPtr since the counting occurs in the object itself (via<br>
> QSharedPointer), instead of an external pointer type.<br>
><br>
> I think (but am not positive) that KSharedPtr is the same thing as<br>
> QExplictlySharedDataPointer, just without a detach call. So we could use<br>
> QExplictlySharedDataPointer and ignore detach.<br>
><br>
</div>Hmm nice, it seems QExplicitlySharedDataPointer fits the purpose, I will<br>
try it<br>
<br>
BR<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
telepathy mailing list<br>
<a href="mailto:telepathy@lists.freedesktop.org">telepathy@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/telepathy" target="_blank">http://lists.freedesktop.org/mailman/listinfo/telepathy</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Kenneth Rohde Christiansen<br><a href="http://kenneth.christiansen.googlepages.com">http://kenneth.christiansen.googlepages.com</a><br>