mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Begone QSharedPointer destructor warnings!
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#include "Typedefs.h"
|
#include "Typedefs.h"
|
||||||
#include "PlaylistInterface.h"
|
#include "PlaylistInterface.h"
|
||||||
#include "DllMacro.h"
|
#include "DllMacro.h"
|
||||||
|
#include "Collection.h"
|
||||||
#include "infosystem/InfoSystem.h"
|
#include "infosystem/InfoSystem.h"
|
||||||
|
|
||||||
namespace Tomahawk
|
namespace Tomahawk
|
||||||
|
@@ -23,7 +23,6 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QtCore/QSharedPointer>
|
|
||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
#include <QtGui/QPixmap>
|
#include <QtGui/QPixmap>
|
||||||
#endif
|
#endif
|
||||||
@@ -87,7 +86,7 @@ private slots:
|
|||||||
void infoSystemFinished( QString target );
|
void infoSystemFinished( QString target );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Q_DISABLE_COPY( Artist )
|
Artist();
|
||||||
|
|
||||||
unsigned int m_id;
|
unsigned int m_id;
|
||||||
QString m_name;
|
QString m_name;
|
||||||
|
@@ -39,6 +39,41 @@
|
|||||||
|
|
||||||
using namespace Tomahawk;
|
using namespace Tomahawk;
|
||||||
|
|
||||||
|
SocialAction::SocialAction() {}
|
||||||
|
SocialAction::~SocialAction() {}
|
||||||
|
|
||||||
|
SocialAction& SocialAction::operator=( const SocialAction& other )
|
||||||
|
{
|
||||||
|
action = other.action;
|
||||||
|
value = other.value;
|
||||||
|
timestamp = other.timestamp;
|
||||||
|
source = other.source;
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
SocialAction::SocialAction( const SocialAction& other )
|
||||||
|
{
|
||||||
|
*this = other;
|
||||||
|
}
|
||||||
|
|
||||||
|
PlaybackLog::PlaybackLog() {}
|
||||||
|
PlaybackLog::~PlaybackLog() {}
|
||||||
|
|
||||||
|
PlaybackLog& PlaybackLog::operator=( const PlaybackLog& other )
|
||||||
|
{
|
||||||
|
source = other.source;
|
||||||
|
timestamp = other.timestamp;
|
||||||
|
secsPlayed = other.secsPlayed;
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
PlaybackLog::PlaybackLog( const PlaybackLog& other )
|
||||||
|
{
|
||||||
|
*this = other;
|
||||||
|
}
|
||||||
|
|
||||||
query_ptr
|
query_ptr
|
||||||
Query::get( const QString& artist, const QString& track, const QString& album, const QID& qid, bool autoResolve )
|
Query::get( const QString& artist, const QString& track, const QString& album, const QID& qid, bool autoResolve )
|
||||||
{
|
{
|
||||||
|
@@ -46,6 +46,13 @@ struct SocialAction
|
|||||||
QVariant value;
|
QVariant value;
|
||||||
QVariant timestamp;
|
QVariant timestamp;
|
||||||
Tomahawk::source_ptr source;
|
Tomahawk::source_ptr source;
|
||||||
|
|
||||||
|
// Make explicit so compiler won't auto-generate, since destructor of
|
||||||
|
// source_ptr is not defined yet (only typedef included in header)
|
||||||
|
SocialAction();
|
||||||
|
~SocialAction();
|
||||||
|
SocialAction& operator=( const SocialAction& other );
|
||||||
|
SocialAction( const SocialAction& other );
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PlaybackLog
|
struct PlaybackLog
|
||||||
@@ -53,6 +60,13 @@ struct PlaybackLog
|
|||||||
Tomahawk::source_ptr source;
|
Tomahawk::source_ptr source;
|
||||||
unsigned int timestamp;
|
unsigned int timestamp;
|
||||||
unsigned int secsPlayed;
|
unsigned int secsPlayed;
|
||||||
|
|
||||||
|
// Make explicit so compiler won't auto-generate, since destructor of
|
||||||
|
// source_ptr is not defined yet (only typedef included in header)
|
||||||
|
PlaybackLog();
|
||||||
|
~PlaybackLog();
|
||||||
|
PlaybackLog& operator=( const PlaybackLog& other );
|
||||||
|
PlaybackLog( const PlaybackLog& other );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user