From 9597e224068505196d6802f05edc6d182a69cd4b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 29 Oct 2016 16:45:19 +0000 Subject: some optimizations git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6815 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/converter/converter.cpp | 1 + src/plugins/General/scrobbler/scrobblercache.cpp | 5 +++-- src/plugins/General/scrobbler/scrobblercache.h | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/plugins/General') diff --git a/src/plugins/General/converter/converter.cpp b/src/plugins/General/converter/converter.cpp index cf6f8947e..de7aafe41 100644 --- a/src/plugins/General/converter/converter.cpp +++ b/src/plugins/General/converter/converter.cpp @@ -40,6 +40,7 @@ Converter::Converter(QObject *parent) : QObject(parent), QRunnable() m_user_stop = false; m_decoder = 0; m_input = 0; + m_row = -1; } Converter::~Converter() diff --git a/src/plugins/General/scrobbler/scrobblercache.cpp b/src/plugins/General/scrobbler/scrobblercache.cpp index 054b6ba75..0144aefa2 100644 --- a/src/plugins/General/scrobbler/scrobblercache.cpp +++ b/src/plugins/General/scrobbler/scrobblercache.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2013 by Ilya Kotov * + * Copyright (C) 2013-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -42,11 +42,12 @@ SongInfo::SongInfo(const SongInfo &other) SongInfo::~SongInfo() {} -void SongInfo::operator=(const SongInfo &info) +SongInfo & SongInfo::operator=(const SongInfo &info) { m_metadata = info.metaData(); m_length = info.length(); m_start_ts = info.timeStamp(); + return *this; } bool SongInfo::operator==(const SongInfo &info) diff --git a/src/plugins/General/scrobbler/scrobblercache.h b/src/plugins/General/scrobbler/scrobblercache.h index 40ac5fff6..ae0494e96 100644 --- a/src/plugins/General/scrobbler/scrobblercache.h +++ b/src/plugins/General/scrobbler/scrobblercache.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2013 by Ilya Kotov * + * Copyright (C) 2013-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -38,7 +38,7 @@ public: ~SongInfo(); - void operator=(const SongInfo &info); + SongInfo & operator=(const SongInfo &info); bool operator==(const SongInfo &info); bool operator!=(const SongInfo &info); -- cgit v1.2.3-13-gbd6f