1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-23 09:19:41 +01:00

Begone QSharedPointer destructor warnings!

This commit is contained in:
Leo Franchi 2012-05-18 17:39:42 -04:00
parent eeba60dfec
commit 64aea4541d
4 changed files with 51 additions and 2 deletions

@ -31,6 +31,7 @@
#include "Typedefs.h"
#include "PlaylistInterface.h"
#include "DllMacro.h"
#include "Collection.h"
#include "infosystem/InfoSystem.h"
namespace Tomahawk

@ -23,7 +23,6 @@
#include "config.h"
#include <QtCore/QObject>
#include <QtCore/QSharedPointer>
#ifndef ENABLE_HEADLESS
#include <QtGui/QPixmap>
#endif
@ -87,7 +86,7 @@ private slots:
void infoSystemFinished( QString target );
private:
Q_DISABLE_COPY( Artist )
Artist();
unsigned int m_id;
QString m_name;

@ -39,6 +39,41 @@
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::get( const QString& artist, const QString& track, const QString& album, const QID& qid, bool autoResolve )
{

@ -46,6 +46,13 @@ struct SocialAction
QVariant value;
QVariant timestamp;
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
@ -53,6 +60,13 @@ struct PlaybackLog
Tomahawk::source_ptr source;
unsigned int timestamp;
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 );
};