Supernovae.cpp   Supernovae.cpp 
skipping to change at line 310 skipping to change at line 310
result << sn->getNameI18n().toUpper(); result << sn->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 Supernovae::listMatchingObjects(const QString& objPrefix, int m
axNbItem) const
{
QStringList result;
if (maxNbItem==0) return result;
QString objw = objPrefix.toUpper();
foreach(const SupernovaP& sn, snstar)
{
if (sn->getEnglishName().toUpper().left(objw.length()) == ob
jw)
{
result << sn->getEnglishName().toUpper();
}
}
result.sort();
if (result.size()>maxNbItem) result.erase(result.begin()+maxNbItem,
result.end());
return result;
}
QStringList Supernovae::listAllObjects(bool inEnglish) const QStringList Supernovae::listAllObjects(bool inEnglish) const
{ {
QStringList result; QStringList result;
if (inEnglish) if (inEnglish)
{ {
foreach (const SupernovaP& sn, snstar) foreach (const SupernovaP& sn, snstar)
{ {
result << sn->getEnglishName(); result << sn->getEnglishName();
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 24 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/