StelLocation.cpp   StelLocation.cpp 
skipping to change at line 65 skipping to change at line 65
{ {
StelLocation loc; StelLocation loc;
const QStringList& splitline = rawline.split("\t"); const QStringList& splitline = rawline.split("\t");
loc.name = splitline.at(0); loc.name = splitline.at(0);
loc.state = splitline.at(1); loc.state = splitline.at(1);
loc.country = StelLocaleMgr::countryCodeToString(splitline.at(2)); loc.country = StelLocaleMgr::countryCodeToString(splitline.at(2));
if (loc.country.isEmpty()) if (loc.country.isEmpty())
loc.country = splitline.at(2); loc.country = splitline.at(2);
loc.role = splitline.at(3).at(0); loc.role = splitline.at(3).at(0);
if (loc.role == '\0')
loc.role = 'X';
loc.population = (int) (splitline.at(4).toFloat()*1000); loc.population = (int) (splitline.at(4).toFloat()*1000);
const QString& latstring = splitline.at(5); const QString& latstring = splitline.at(5);
loc.latitude = latstring.left(latstring.size() - 1).toFloat(); loc.latitude = latstring.left(latstring.size() - 1).toFloat();
if (latstring.endsWith('S')) if (latstring.endsWith('S'))
loc.latitude=-loc.latitude; loc.latitude=-loc.latitude;
const QString& lngstring = splitline.at(6); const QString& lngstring = splitline.at(6);
loc.longitude = lngstring.left(lngstring.size() - 1).toFloat(); loc.longitude = lngstring.left(lngstring.size() - 1).toFloat();
if (lngstring.endsWith('W')) if (lngstring.endsWith('W'))
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 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/