[Kde-pim] KCalCore Ptr typedefs and constness

David Jarvie djarvie at kde.org
Thu Aug 19 01:37:44 BST 2010


I wonder if in addition to such typedefs as KCalCore::Event::Ptr, there should also be

typedef QSharedPointer<const KCalCore::Event> ConstPtr;

AFAICS, currently it isn't possible using the Ptr types to have a pointer to const data. Specifying

const Ptr

will only make the pointer const, not the data pointed to.

Or is QSharedPointer much cleverer than I imagine?

-- 
David Jarvie.
KDE developer.
KAlarm author -- http://www.astrojar.org.uk/kalarm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100819/097de7b6/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list