Commit cb624907 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove endl at the end of qDebug

parent d72f33a1
......@@ -145,7 +145,7 @@ KigDocument* KigFilterNative::load( const QString& file)
KIG_FILTER_PARSE_ERROR;
dynamic_cast<const KArchiveFile*>( kigz )->copyTo( tempdir );
qDebug() << "extracted file: " << tempdir + kigz->name()
<< "exists: " << QFile::exists( tempdir + kigz->name() ) << endl;
<< "exists: " << QFile::exists( tempdir + kigz->name() );
kigdoc.setFileName( tempdir + kigz->name() );
}
......
......@@ -1017,7 +1017,7 @@ extern "C" KIGPART_EXPORT int convertToNative( const QUrl &url, const QByteArray
if ( ! url.isLocalFile() )
{
// TODO
qCritical() << "--convert-to-native only supports local files for now." << endl;
qCritical() << "--convert-to-native only supports local files for now.";
return -1;
}
......@@ -1026,7 +1026,7 @@ extern "C" KIGPART_EXPORT int convertToNative( const QUrl &url, const QByteArray
QFileInfo fileinfo( file );
if ( ! fileinfo.exists() )
{
qCritical() << "The file \"" << file << "\" does not exist" << endl;
qCritical() << "The file \"" << file << "\" does not exist";
return -1;
};
......@@ -1036,14 +1036,14 @@ extern "C" KIGPART_EXPORT int convertToNative( const QUrl &url, const QByteArray
KigFilter* filter = KigFilters::instance()->find( mimeType.name() );
if ( !filter )
{
qCritical() << "The file \"" << file << "\" is of a filetype not currently supported by Kig." << endl;
qCritical() << "The file \"" << file << "\" is of a filetype not currently supported by Kig.";
return -1;
};
KigDocument* doc = filter->load (file);
if ( !doc )
{
qCritical() << "Parse error in file \"" << file << "\"." << endl;
qCritical() << "Parse error in file \"" << file << "\".";
return -1;
}
......@@ -1057,7 +1057,7 @@ extern "C" KIGPART_EXPORT int convertToNative( const QUrl &url, const QByteArray
bool success = KigFilters::instance()->save( *doc, out );
if ( !success )
{
qCritical() << "something went wrong while saving" << endl;
qCritical() << "something went wrong while saving";
return -1;
}
......
......@@ -44,7 +44,7 @@ static int convertToNative( const QUrl &file, const QByteArray& outfile )
converterfunction = ( int ( * )( const QUrl&, const QByteArray& ) ) library.resolve( "convertToNative" );
if ( !converterfunction )
{
qCritical() << "Error: broken Kig installation: different library and application version !" << endl;
qCritical() << "Error: broken Kig installation: different library and application version !";
return -1;
}
return (*converterfunction)( file, outfile );
......@@ -113,12 +113,12 @@ int main( int argc, char **argv )
outfile = '-';
if ( urls.isEmpty() )
{
qCritical() << "Error: --convert-to-native specified without a file to convert." << endl;
qCritical() << "Error: --convert-to-native specified without a file to convert.";
return -1;
}
if ( urls.count() > 1 )
{
qCritical() << "Error: --convert-to-native specified with more than one file to convert." << endl;
qCritical() << "Error: --convert-to-native specified with more than one file to convert.";
return -1;
}
return convertToNative( QUrl::fromLocalFile( urls[0] ), outfile.toLocal8Bit() );
......@@ -127,7 +127,7 @@ int main( int argc, char **argv )
{
if ( parser.isSet( QStringLiteral("outfile") ) )
{
qCritical() << "Error: --outfile specified without convert-to-native." << endl;
qCritical() << "Error: --outfile specified without convert-to-native.";
return -1;
}
......
......@@ -176,7 +176,7 @@ void calcRayBorderPoints( const double xa, const double ya, double& xb,
yb = r.bottom();
return;
};
qCritical() << "damn" << endl;
qCritical() << "damn";
}
bool isOnLine( const Coordinate& o, const Coordinate& a,
......
......@@ -42,8 +42,7 @@ QDebug& operator<<( QDebug& s, const Rect& t )
s << "left: " << t.left()
<< "bottom: " << t.bottom()
<< "right: " << t.right()
<< "top: " << t.top()
<< endl;
<< "top: " << t.top();
return s;
}
......
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