Skip to content

Commit

Permalink
QmlPlayerProxy: Use QPointer for base track player pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Jun 5, 2021
1 parent b4f3cc3 commit e2d6d0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/skin/qml/qmlplayerproxy.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#include <QColor>
#include <QObject>
#include <QPointer>
#include <QString>

#include "mixer/basetrackplayer.h"
#include "track/track.h"

class BaseTrackPlayer;

namespace mixxx {
namespace skin {
namespace qml {
Expand Down Expand Up @@ -86,7 +86,7 @@ class QmlPlayerProxy : public QObject {
void colorChanged();

private:
BaseTrackPlayer* m_pTrackPlayer;
QPointer<BaseTrackPlayer> m_pTrackPlayer;
TrackPointer m_pCurrentTrack;
};

Expand Down

0 comments on commit e2d6d0c

Please sign in to comment.