Skip to content

Commit

Permalink
Fix deprecated QWeakPointer use of QObject
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 29, 2020
1 parent bfffd53 commit f8eaff0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qobjectuniqueptr.h
Expand Up @@ -23,7 +23,7 @@

#define SIP_NO_FILE

#include <qsharedpointer.h>
#include <QPointer>
#include <qtypeinfo.h>

class QVariant;
Expand Down Expand Up @@ -52,7 +52,7 @@ class QObjectUniquePtr
typedef const QObject Type;
};
typedef typename TypeSelector<T>::Type QObjectType;
QWeakPointer<QObjectType> mPtr;
QPointer<QObjectType> mPtr;
public:

/**
Expand Down

0 comments on commit f8eaff0

Please sign in to comment.