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

List:       kde-pim
Subject:    [Kde-pim] KCalCore Ptr typedefs and constness
From:       David Jarvie <djarvie () kde ! org>
Date:       2010-08-19 0:37:44
Message-ID: 201008190137.54966.djarvie () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

["signature.asc" (application/pgp-signature)]

_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/

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

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