Exoplanets.cpp   Exoplanets.cpp 
skipping to change at line 349 skipping to change at line 349
result << eps->getNameI18n().toUpper(); result << eps->getNameI18n().toUpper();
} }
} }
result.sort(); result.sort();
if (result.size()>maxNbItem) result.erase(result.begin()+maxNbItem, result.end()); if (result.size()>maxNbItem) result.erase(result.begin()+maxNbItem, result.end());
return result; return result;
} }
QStringList Exoplanets::listMatchingObjects(const QString& objPrefix, int m
axNbItem) const
{
QStringList result;
if (!flagShowExoplanets)
return result;
if (maxNbItem==0) return result;
QString objw = objPrefix.toUpper();
foreach(const ExoplanetP& eps, ep)
{
if (eps->getEnglishName().toUpper().left(objw.length()) == o
bjw)
{
result << eps->getEnglishName().toUpper();
}
}
result.sort();
if (result.size()>maxNbItem) result.erase(result.begin()+maxNbItem,
result.end());
return result;
}
QStringList Exoplanets::listAllObjects(bool inEnglish) const QStringList Exoplanets::listAllObjects(bool inEnglish) const
{ {
QStringList result; QStringList result;
if (inEnglish) if (inEnglish)
{ {
foreach (const ExoplanetP& planet, ep) foreach (const ExoplanetP& planet, ep)
{ {
result << planet->getEnglishName(); result << planet->getEnglishName();
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 27 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/