From 6b92048c15148ce049ccf7720dae85c41e957244 Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 10 Jul 2013 20:00:52 +0200 Subject: [PATCH] Code cleanup. --- src/networkremote/outgoingdatacreator.cpp | 8 ++------ src/networkremote/outgoingdatacreator.h | 1 + src/songinfo/ultimatelyricsreader.h | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/networkremote/outgoingdatacreator.cpp b/src/networkremote/outgoingdatacreator.cpp index 1c0e489d9..fd58fd2d2 100644 --- a/src/networkremote/outgoingdatacreator.cpp +++ b/src/networkremote/outgoingdatacreator.cpp @@ -19,10 +19,6 @@ #include -#include -#include -#include - #include "networkremote.h" #include "core/logging.h" #include "core/timeconstants.h" @@ -520,8 +516,8 @@ void OutgoingDataCreator::SendLyrics(int id, const SongInfoFetcher::Result& resu foreach (const CollapsibleInfoPane::Data& data, result.info_) { // If the size is zero, do not send the provider SongInfoTextView* editor = qobject_cast(data.contents_); - //if (editor->toPlainText().length() == 0) - // continue; + if (editor->toPlainText().length() == 0) + continue; pb::remote::Lyric* lyric = response->mutable_lyrics()->Add(); diff --git a/src/networkremote/outgoingdatacreator.h b/src/networkremote/outgoingdatacreator.h index 8bd1c4e35..bf11ef3b1 100644 --- a/src/networkremote/outgoingdatacreator.h +++ b/src/networkremote/outgoingdatacreator.h @@ -24,6 +24,7 @@ #include "remoteclient.h" #include + typedef QList ProviderList; class OutgoingDataCreator : public QObject { diff --git a/src/songinfo/ultimatelyricsreader.h b/src/songinfo/ultimatelyricsreader.h index a369ed768..7cbe99106 100644 --- a/src/songinfo/ultimatelyricsreader.h +++ b/src/songinfo/ultimatelyricsreader.h @@ -21,10 +21,10 @@ #include "ultimatelyricsprovider.h" #include -#include #include class QIODevice; +class QThread; class UltimateLyricsReader : public QObject { Q_OBJECT