StelObjectType.hpp   StelObjectType.hpp 
skipping to change at line 35 skipping to change at line 35
//! Special version of QSharedPointer which by default doesn't delete the r eferenced pointer when //! Special version of QSharedPointer which by default doesn't delete the r eferenced pointer when
//! the reference count reaches 0. //! the reference count reaches 0.
template <class T> class QSharedPointerNoDelete : public QSharedPointer<T> template <class T> class QSharedPointerNoDelete : public QSharedPointer<T>
{ {
public: public:
QSharedPointerNoDelete() {;} QSharedPointerNoDelete() {;}
QSharedPointerNoDelete(T *ptr) : QSharedPointer<T>(ptr, QSharedPoint erNoDelete::noDelete) {;} QSharedPointerNoDelete(T *ptr) : QSharedPointer<T>(ptr, QSharedPoint erNoDelete::noDelete) {;}
QSharedPointerNoDelete(T *ptr, bool own) : QSharedPointer<T>(ptr) {Q _UNUSED(own); Q_ASSERT(own==true);} QSharedPointerNoDelete(T *ptr, bool own) : QSharedPointer<T>(ptr) {Q _UNUSED(own); Q_ASSERT(own==true);}
QSharedPointerNoDelete(const QSharedPointer<T>& ptr) : QSharedPointe r<T>(ptr) {;} QSharedPointerNoDelete(const QSharedPointer<T>& ptr) : QSharedPointe r<T>(ptr) {;}
static void noDelete(T *ptr) {Q_UNUSED(ptr);} static void noDelete(T *ptr) {Q_UNUSED(ptr);}
inline operator const QSharedPointer<T>&() const {return *(static_ca st<QSharedPointer<T> >(this));}
}; };
//! @file StelObjectType.hpp //! @file StelObjectType.hpp
//! Define the StelObjectP type. //! Define the StelObjectP type.
class StelObject; class StelObject;
//! @typedef StelObjectP //! @typedef StelObjectP
//! Intrusive pointer used to manage StelObject with smart pointers //! Intrusive pointer used to manage StelObject with smart pointers
typedef QSharedPointerNoDelete<StelObject> StelObjectP; typedef QSharedPointerNoDelete<StelObject> StelObjectP;
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/