StelObjectType.hpp   StelObjectType.hpp 
skipping to change at line 23 skipping to change at line 23
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _STELOBJECTTYPE_HPP_ #ifndef _STELOBJECTTYPE_HPP_
#define _STELOBJECTTYPE_HPP_ #define _STELOBJECTTYPE_HPP_
#include "config.h"
#include <QSharedPointer> #include <QSharedPointer>
//! 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);}
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 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/