Skip to content

Commit

Permalink
endl -> Qt::endl
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 20, 2021
1 parent f2bcea2 commit f4d9f83
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions src/analysis/interpolation/qgsgridfilewriter.cpp
Expand Up @@ -73,7 +73,7 @@ int QgsGridFileWriter::writeFile( QgsFeedback *feedback )
}
currentXValue += mCellSizeX;
}
outStream << endl;
outStream << Qt::endl;
currentYValue -= mCellSizeY;

if ( feedback )
Expand Down Expand Up @@ -101,28 +101,28 @@ int QgsGridFileWriter::writeFile( QgsFeedback *feedback )
}
QTextStream prjStream( &prjFile );
prjStream << crs;
prjStream << endl;
prjStream << Qt::endl;
prjFile.close();

return 0;
}

int QgsGridFileWriter::writeHeader( QTextStream &outStream )
{
outStream << "NCOLS " << mNumColumns << endl;
outStream << "NROWS " << mNumRows << endl;
outStream << "XLLCORNER " << mInterpolationExtent.xMinimum() << endl;
outStream << "YLLCORNER " << mInterpolationExtent.yMinimum() << endl;
outStream << "NCOLS " << mNumColumns << Qt::endl;
outStream << "NROWS " << mNumRows << Qt::endl;
outStream << "XLLCORNER " << mInterpolationExtent.xMinimum() << Qt::endl;
outStream << "YLLCORNER " << mInterpolationExtent.yMinimum() << Qt::endl;
if ( mCellSizeX == mCellSizeY ) //standard way
{
outStream << "CELLSIZE " << mCellSizeX << endl;
outStream << "CELLSIZE " << mCellSizeX << Qt::endl;
}
else //this is supported by GDAL but probably not by other products
{
outStream << "DX " << mCellSizeX << endl;
outStream << "DY " << mCellSizeY << endl;
outStream << "DX " << mCellSizeX << Qt::endl;
outStream << "DY " << mCellSizeY << Qt::endl;
}
outStream << "NODATA_VALUE -9999" << endl;
outStream << "NODATA_VALUE -9999" << Qt::endl;

return 0;
}
2 changes: 1 addition & 1 deletion src/analysis/raster/qgsrelief.cpp
Expand Up @@ -548,7 +548,7 @@ bool QgsRelief::exportFrequencyDistributionToCsv( const QString &file )
#endif
for ( int i = 0; i < 252; ++i )
{
outstream << QString::number( i ) + ',' + QString::number( frequency[i] ) << endl;
outstream << QString::number( i ) + ',' + QString::number( frequency[i] ) << Qt::endl;
}
outFile.close();
return true;
Expand Down

0 comments on commit f4d9f83

Please sign in to comment.