Cherry pick more make format changes src/podcasts

This commit is contained in:
Krzysztof Sobiecki 2014-12-16 14:59:17 +01:00
parent 8b934b7ada
commit ad4bc3b88b
2 changed files with 9 additions and 9 deletions

View File

@ -170,7 +170,7 @@ void GPodderSync::DeviceUpdatesFailed(mygpo::DeviceUpdatesPtr reply) {
void GPodderSync::DeviceUpdatesFinished(mygpo::DeviceUpdatesPtr reply) {
// Remember episode actions for each podcast, so when we add a new podcast
// we can apply the actions immediately.
QMap<QUrl, QList<mygpo::EpisodePtr> > episodes_by_podcast;
QMap<QUrl, QList<mygpo::EpisodePtr>> episodes_by_podcast;
for (mygpo::EpisodePtr episode : reply->updateList()) {
episodes_by_podcast[episode->podcastUrl()].append(episode);
}
@ -235,7 +235,7 @@ void GPodderSync::NewPodcastLoaded(PodcastUrlLoaderReply* reply,
}
void GPodderSync::ApplyActions(
const QList<QSharedPointer<mygpo::Episode> >& actions,
const QList<QSharedPointer<mygpo::Episode>>& actions,
PodcastEpisodeList* episodes) {
for (PodcastEpisodeList::iterator it = episodes->begin();
it != episodes->end(); ++it) {

View File

@ -64,13 +64,13 @@ void Task::reading() {
}
}
void Task::finishedPublic() {
disconnect(repl.get(), SIGNAL(readyRead()), 0, 0);
disconnect(repl.get(), SIGNAL(downloadProgress(qint64, qint64)), 0, 0);
disconnect(repl.get(), SIGNAL(finished()), 0, 0);
emit ProgressChanged(episode_, PodcastDownload::NotDownloading, 0);
// Delete the file
file_->remove();
emit finished(this);
disconnect(repl.get(), SIGNAL(readyRead()), 0, 0);
disconnect(repl.get(), SIGNAL(downloadProgress(qint64, qint64)), 0, 0);
disconnect(repl.get(), SIGNAL(finished()), 0, 0);
emit ProgressChanged(episode_, PodcastDownload::NotDownloading, 0);
// Delete the file
file_->remove();
emit finished(this);
}
void Task::finishedInternal() {