Commit cd5bc7a3 authored by Michael Pyne's avatar Michael Pyne

Remove now-redundant "endl" with debug output.

parent b8c9ea79
......@@ -562,7 +562,7 @@ CollectionListItem::CollectionListItem(CollectionList *parent, const FileHandle
parent->dataChanged();
}
else {
qCCritical(JUK_LOG) << "CollectionListItem::CollectionListItem() -- Tag() could not be created." << endl;
qCCritical(JUK_LOG) << "CollectionListItem::CollectionListItem() -- Tag() could not be created.";
}
SplashScreen::increment();
......
......@@ -203,7 +203,7 @@ void CoverDialog::removeSelectedCover()
}
if(!CoverManager::removeCover(coverItem->id()))
qCCritical(JUK_LOG) << "Unable to remove selected cover: " << coverItem->id() << endl;
qCCritical(JUK_LOG) << "Unable to remove selected cover: " << coverItem->id();
else
delete coverItem;
}
......
......@@ -421,7 +421,7 @@ coverKey CoverManager::addCover(const QPixmap &large, const QString &artist, con
// to save the pixmap as a .png.
if(!large.save(tempFile.fileName(), "PNG")) {
qCCritical(JUK_LOG) << "Unable to save pixmap to " << tempFile.fileName() << endl;
qCCritical(JUK_LOG) << "Unable to save pixmap to " << tempFile.fileName();
return NoMatch;
}
......
......@@ -147,12 +147,12 @@ void FileHandle::refresh()
void FileHandle::setFile(const QString &path)
{
if(path.isEmpty()) {
qCCritical(JUK_LOG) << "trying to set an empty path" << endl;
qCCritical(JUK_LOG) << "trying to set an empty path";
return;
}
if(!QFile::exists(path)) {
qCCritical(JUK_LOG) << "trying to set non-existent file: " << path << endl;
qCCritical(JUK_LOG) << "trying to set non-existent file: " << path;
return;
}
......
......@@ -736,7 +736,7 @@ int FileRenamerWidget::idOfPosition(int position) const
if(m_rows[i].position == position)
return i;
qCCritical(JUK_LOG) << "Unable to find identifier for position " << position << endl;
qCCritical(JUK_LOG) << "Unable to find identifier for position " << position;
return -1;
}
......@@ -858,7 +858,7 @@ void FileRenamerWidget::slotRemoveRow(int id)
{
// Remove the given identified row.
if(!removeRow(id))
qCCritical(JUK_LOG) << "Unable to remove row " << id << endl;
qCCritical(JUK_LOG) << "Unable to remove row " << id;
}
//
......@@ -946,7 +946,7 @@ bool FileRenamer::moveFile(const QString &src, const QString &dest)
// Create the directory.
if(!KStandardDirs::exists(dir.path()))
if(!KStandardDirs::makeDir(dir.path())) {
qCCritical(JUK_LOG) << "Unable to create directory " << dir.path() << endl;
qCCritical(JUK_LOG) << "Unable to create directory " << dir.path();
return false;
}
......
......@@ -225,12 +225,12 @@ void CoverItem::dropEvent(QDropEvent *e)
update(m_file);
}
else
qCCritical(JUK_LOG) << "Unable to load image from " << urls.front() << endl;
qCCritical(JUK_LOG) << "Unable to load image from " << urls.front();
KIO::NetAccess::removeTempFile(fileName);
}
else
qCCritical(JUK_LOG) << "Unable to download " << urls.front() << endl;
qCCritical(JUK_LOG) << "Unable to download " << urls.front();
}
}
......
......@@ -77,7 +77,7 @@ bool Tag::save()
result = file->save();
}
else {
qCCritical(JUK_LOG) << "Couldn't save file." << endl;
qCCritical(JUK_LOG) << "Couldn't save file.";
result = false;
}
......
......@@ -132,7 +132,7 @@ void DefaultSequenceIterator::advance()
}
}
else
qCCritical(JUK_LOG) << "Unable to perform album random play on " << *item << endl;
qCCritical(JUK_LOG) << "Unable to perform album random play on " << *item;
}
else
item = m_randomItems[KRandom::random() % m_randomItems.count()];
......
......@@ -111,7 +111,7 @@ void WebImageFetcher::slotWebRequestFinished(KJob *job)
if (!job || job->error()) {
qCCritical(JUK_LOG) << "Error reading image results from last.fm!\n";
qCCritical(JUK_LOG) << d->connection->errorString() << endl;
qCCritical(JUK_LOG) << d->connection->errorString();
return;
}
......@@ -127,7 +127,7 @@ void WebImageFetcher::slotWebRequestFinished(KJob *job)
int errorCol, errorLine;
if (!results.setContent(d->connection->data(), &errorStr, &errorLine, &errorCol)) {
qCCritical(JUK_LOG) << "Unable to create XML document from results.\n";
qCCritical(JUK_LOG) << "Line " << errorLine << ", " << errorStr << endl;
qCCritical(JUK_LOG) << "Line " << errorLine << ", " << errorStr;
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment