StelLocation.cpp   StelLocation.cpp 
skipping to change at line 32 skipping to change at line 32
// Output the location as a string ready to be stored in the user_location file // Output the location as a string ready to be stored in the user_location file
QString StelLocation::serializeToLine() const QString StelLocation::serializeToLine() const
{ {
return QString("%1\t%2\t%3\t%4\t%5\t%6\t%7\t%8\t%9\t%10\t%11\t%12") return QString("%1\t%2\t%3\t%4\t%5\t%6\t%7\t%8\t%9\t%10\t%11\t%12")
.arg(name) .arg(name)
.arg(state) .arg(state)
.arg(country) .arg(country)
.arg(role) .arg(role)
.arg(population/1000) .arg(population/1000)
.arg(latitude<0 ? QString("%1S").arg(-latitude, 0, ' .arg(latitude<0 ? QString("%1S").arg(-latitude, 0, '
f', 3) : QString("%1N").arg(latitude, 0, 'f', 3)) f', 6) : QString("%1N").arg(latitude, 0, 'f', 6))
.arg(longitude<0 ? QString("%1W").arg(-longitude, 0, .arg(longitude<0 ? QString("%1W").arg(-longitude, 0,
'f', 3) : QString("%1E").arg(longitude, 0, 'f', 3)) 'f', 6) : QString("%1E").arg(longitude, 0, 'f', 6))
.arg(altitude) .arg(altitude)
.arg(bortleScaleIndex) .arg(bortleScaleIndex)
.arg("") // Reserve for time zone .arg("") // Reserve for time zone
.arg(planetName) .arg(planetName)
.arg(landscapeKey); .arg(landscapeKey);
} }
QDataStream& operator<<(QDataStream& out, const StelLocation& loc) QDataStream& operator<<(QDataStream& out, const StelLocation& loc)
{ {
out << loc.name << loc.state << loc.country << loc.role << loc.popul ation << loc.latitude << loc.longitude << loc.altitude << loc.bortleScaleIn dex << loc.planetName << loc.landscapeKey << loc.isUserLocation; out << loc.name << loc.state << loc.country << loc.role << loc.popul ation << loc.latitude << loc.longitude << loc.altitude << loc.bortleScaleIn dex << loc.planetName << loc.landscapeKey << loc.isUserLocation;
 End of changes. 1 change blocks. 
4 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/