Fix formatting

This commit is contained in:
Jonas Kvinge 2019-02-20 21:29:14 +01:00
parent 87fd93a1cf
commit 55f610f3b2
3 changed files with 6 additions and 9 deletions

View File

@ -43,8 +43,7 @@ class _MessageHandlerBase : public QObject {
Q_OBJECT
public:
// device can be NULL, in which case you must call SetDevice before writing
// any messages.
// device can be nullptr, in which case you must call SetDevice before writing any messages.
_MessageHandlerBase(QIODevice *device, QObject *parent);
void SetDevice(QIODevice *device);
@ -176,4 +175,3 @@ void AbstractMessageHandler<MT>::AbortAll() {
}
#endif // MESSAGEHANDLER_H

View File

@ -43,18 +43,17 @@ class _MessageReplyBase : public QObject {
void Abort();
signals:
signals:
void Finished(bool success);
protected:
protected:
bool finished_;
bool success_;
QSemaphore semaphore_;
};
// A reply future class that is returned immediately for requests that will
// occur in the background. Similar to QNetworkReply.
// A reply future class that is returned immediately for requests that will occur in the background. Similar to QNetworkReply.
template <typename MessageType>
class MessageReply : public _MessageReplyBase {
public:

View File

@ -376,8 +376,8 @@ bool Playlist::setData(const QModelIndex &index, const QVariant &value, int role
if (!set_column_value(song, (Column)index.column(), value)) return false;
TagReaderReply *reply = TagReaderClient::Instance()->SaveFile( song.url().toLocalFile(), song);
NewClosure(reply, SIGNAL(Finished(bool)), this, SLOT(SongSaveComplete(TagReaderReply*, QPersistentModelIndex)), reply, QPersistentModelIndex(index));
TagReaderReply *reply = TagReaderClient::Instance()->SaveFile(song.url().toLocalFile(), song);
NewClosure(reply, SIGNAL(Finished(bool)), this, SLOT(SongSaveComplete(TagReaderReply*, QPersistentModelIndex)), reply, QPersistentModelIndex(index));
return true;