Removed dependency on boost when Qt is used.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
#ifndef OBJECTANALYTICS_H
|
||||
#define OBJECTANALYTICS_H
|
||||
|
||||
#include <boost/cstdint.hpp>
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define TRACK_OBJECT_USAGE
|
||||
#endif
|
||||
|
||||
@@ -21,8 +21,9 @@
|
||||
|
||||
#include "GameOptions.h"
|
||||
|
||||
#ifndef WP8
|
||||
#if !defined(WP8) && !defined(QT_CONFIG)
|
||||
#include <boost/shared_ptr.hpp>
|
||||
#include <boost/scoped_ptr.hpp>
|
||||
#endif
|
||||
|
||||
#if defined (WP8) || defined (IOS) || defined (ANDROID) || defined (QT_CONFIG) || defined (SDL_CONFIG)
|
||||
|
||||
@@ -4,6 +4,15 @@
|
||||
#if (__cplusplus > 199711L)
|
||||
#include <memory>
|
||||
typedef std::shared_ptr<JQuad> JQuadPtr;
|
||||
#elif defined(QT_CONFIG)
|
||||
#include <QSharedPointer>
|
||||
class JQuadPtr : public QSharedPointer<JQuad>
|
||||
{
|
||||
public:
|
||||
JQuadPtr() : QSharedPointer(){};
|
||||
JQuadPtr(JQuad*ptr) : QSharedPointer(ptr){};
|
||||
JQuad* get() const {return data();};
|
||||
};
|
||||
#else
|
||||
#include <boost/shared_ptr.hpp>
|
||||
typedef boost::shared_ptr<JQuad> JQuadPtr;
|
||||
|
||||
Reference in New Issue
Block a user