Commit 7c5a4708 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Remove endl. qCritical/qDebug already adds a endl.

parent 97114df8
......@@ -69,7 +69,7 @@ bool BarGraph::removeBar( uint idx )
{
if ( idx >= bars ) {
qDebug() << "BarGraph::removeBar: idx " << idx << " out of range "
<< bars << endl;
<< bars;
return false;
}
......
......@@ -168,7 +168,7 @@ bool DancingBars::removeSensor( uint pos )
{
if ( pos >= mBars ) {
qDebug() << "DancingBars::removeSensor: idx out of range ("
<< pos << ")" << endl;
<< pos << ")";
return false;
}
......@@ -207,7 +207,7 @@ void DancingBars::answerReceived( int id, const QList<QByteArray> &answerlist )
mSampleBuffer[ id ] = answer.toDouble();
if ( mFlags.testBit( id ) == true ) {
qDebug() << "ERROR: DancingBars lost sample (" << mFlags
<< ", " << mBars << ")" << endl;
<< ", " << mBars << ")";
sensorError( id, true );
return;
}
......
......@@ -448,7 +448,7 @@ bool FancyPlotter::removeBeam( uint beamId )
{
if ( beamId >= mBeams ) {
qDebug() << "FancyPlotter::removeBeam: beamId out of range ("
<< beamId << ")" << endl;
<< beamId << ")";
return false;
}
......
......@@ -161,7 +161,7 @@ bool WorkSheet::load( const QString &fileName )
int columnSpan = element.attribute( QStringLiteral("columnSpan"), QStringLiteral("1") ).toInt();
if ( row < 0 || rowSpan < 0 || (row + rowSpan - 1) >= mRows || column < 0 || columnSpan < 0 || (column + columnSpan - 1) >= mColumns) {
qDebug() << "Row or Column out of range (" << row << ", "
<< column << ")-(" << (row + rowSpan - 1) << ", " << (column + columnSpan - 1) << ")" << endl;
<< column << ")-(" << (row + rowSpan - 1) << ", " << (column + columnSpan - 1) << ")";
return false;
}
replaceDisplay( row, column, element, rowSpan, columnSpan );
......
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