mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-24 18:35:37 +00:00
Don't use endl at the end of qDebug as it already adds end line
This commit is contained in:
parent
932cec415e
commit
cea7d0fa28
|
@ -86,7 +86,7 @@ dvifile::dvifile(const dvifile *old, fontPool *fp)
|
|||
size_of_file = old->size_of_file;
|
||||
end_pointer = dvi_Data()+size_of_file;
|
||||
if (dvi_Data() == nullptr) {
|
||||
qCCritical(OkularDviDebug) << "Not enough memory to copy the DVI-file." << endl;
|
||||
qCCritical(OkularDviDebug) << "Not enough memory to copy the DVI-file.";
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -242,7 +242,7 @@ void dvifile::prepare_pages()
|
|||
|
||||
page_offset.resize(total_pages+1);
|
||||
if (page_offset.size() < (total_pages+1)) {
|
||||
qCCritical(OkularDviDebug) << "No memory for page list!" << endl;
|
||||
qCCritical(OkularDviDebug) << "No memory for page list!";
|
||||
return;
|
||||
}
|
||||
for(int i=0; i<=total_pages; i++)
|
||||
|
|
|
@ -111,12 +111,12 @@ void dviRenderer::drawPage(RenderedDocumentPagePixmap* page)
|
|||
|
||||
// Paranoid safety checks
|
||||
if (page == nullptr) {
|
||||
qCCritical(OkularDviDebug) << "dviRenderer::drawPage(documentPage *) called with argument == 0" << endl;
|
||||
qCCritical(OkularDviDebug) << "dviRenderer::drawPage(documentPage *) called with argument == 0";
|
||||
return;
|
||||
}
|
||||
// Paranoid safety checks
|
||||
if (page->pageNumber == 0) {
|
||||
qCCritical(OkularDviDebug) << "dviRenderer::drawPage(documentPage *) called for a documentPage with page number 0" << endl;
|
||||
qCCritical(OkularDviDebug) << "dviRenderer::drawPage(documentPage *) called for a documentPage with page number 0";
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -124,17 +124,17 @@ void dviRenderer::drawPage(RenderedDocumentPagePixmap* page)
|
|||
|
||||
|
||||
if ( dviFile == nullptr ) {
|
||||
qCCritical(OkularDviDebug) << "dviRenderer::drawPage(documentPage *) called, but no dviFile class allocated." << endl;
|
||||
qCCritical(OkularDviDebug) << "dviRenderer::drawPage(documentPage *) called, but no dviFile class allocated.";
|
||||
page->clear();
|
||||
return;
|
||||
}
|
||||
if (page->pageNumber > dviFile->total_pages) {
|
||||
qCCritical(OkularDviDebug) << "dviRenderer::drawPage(documentPage *) called for a documentPage with page number " << page->pageNumber
|
||||
<< " but the current dviFile has only " << dviFile->total_pages << " pages." << endl;
|
||||
<< " but the current dviFile has only " << dviFile->total_pages << " pages.";
|
||||
return;
|
||||
}
|
||||
if ( dviFile->dvi_Data() == nullptr ) {
|
||||
qCCritical(OkularDviDebug) << "dviRenderer::drawPage(documentPage *) called, but no dviFile is loaded yet." << endl;
|
||||
qCCritical(OkularDviDebug) << "dviRenderer::drawPage(documentPage *) called, but no dviFile is loaded yet.";
|
||||
page->clear();
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1729,7 +1729,7 @@ void XpsDocument::parseDocumentStructure( const QString &documentStructureFileNa
|
|||
synopsisElement.setAttribute( QStringLiteral("Viewport"), viewport.toString() );
|
||||
if ( outlineLevel == 1 ) {
|
||||
// qCWarning(OkularXpsDebug) << "Description: "
|
||||
// << outlineEntryElement.attribute( "Description" ) << endl;
|
||||
// << outlineEntryElement.attribute( "Description" );
|
||||
m_docStructure->appendChild( synopsisElement );
|
||||
} else {
|
||||
// find the last next highest element (so it this is level 3, we need
|
||||
|
@ -1827,14 +1827,14 @@ XpsDocument::XpsDocument(XpsFile *file, const QString &fileName): m_file(file),
|
|||
} else {
|
||||
qCWarning(OkularXpsDebug) << "Unknown document relationships element: "
|
||||
<< attributes.value( QStringLiteral("Type") ).toString() << " : "
|
||||
<< attributes.value( QStringLiteral("Target") ).toString() << endl;
|
||||
<< attributes.value( QStringLiteral("Target") ).toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( xml.error() ) {
|
||||
qCWarning(OkularXpsDebug) << "Could not parse XPS page relationships file ( "
|
||||
<< documentRelationshipFile
|
||||
<< " ) - " << xml.errorString() << endl;
|
||||
<< " ) - " << xml.errorString();
|
||||
}
|
||||
} else { // the page relationship file didn't exist in the zipfile
|
||||
// this isn't fatal
|
||||
|
|
Loading…
Reference in a new issue