Skip to content
Permalink
Browse files
endl -> Qt::endl
  • Loading branch information
nyalldawson committed Jul 20, 2021
1 parent f2bcea2 commit f4d9f83e3b34a9faaf0d10b2ae6bb239b21c0076
Showing with 11 additions and 11 deletions.
  1. +10 −10 src/analysis/interpolation/qgsgridfilewriter.cpp
  2. +1 −1 src/analysis/raster/qgsrelief.cpp
@@ -73,7 +73,7 @@ int QgsGridFileWriter::writeFile( QgsFeedback *feedback )
}
currentXValue += mCellSizeX;
}
outStream << endl;
outStream << Qt::endl;
currentYValue -= mCellSizeY;

if ( feedback )
@@ -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;
}
@@ -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;

0 comments on commit f4d9f83

Please sign in to comment.