ConstellationMgr.cpp   ConstellationMgr.cpp 
skipping to change at line 1151 skipping to change at line 1151
if (constw==objw) if (constw==objw)
{ {
result << (*iter)->getNameI18n(); result << (*iter)->getNameI18n();
if (result.size()==maxNbItem) if (result.size()==maxNbItem)
return result; return result;
} }
} }
return result; return result;
} }
QStringList ConstellationMgr::listMatchingObjects(const QString& objPrefix,
int maxNbItem) const
{
QStringList result;
if (maxNbItem==0) return result;
QString objw = objPrefix.toUpper();
vector < Constellation * >::const_iterator iter;
for (iter = asterisms.begin(); iter != asterisms.end(); ++iter)
{
QString constw = (*iter)->getEnglishName().mid(0, objw.size(
)).toUpper();
if (constw==objw)
{
result << (*iter)->getEnglishName();
if (result.size()==maxNbItem)
return result;
}
}
return result;
}
QStringList ConstellationMgr::listAllObjects(bool inEnglish) const QStringList ConstellationMgr::listAllObjects(bool inEnglish) const
{ {
QStringList result; QStringList result;
if (inEnglish) if (inEnglish)
{ {
foreach(Constellation* constellation, asterisms) foreach(Constellation* constellation, asterisms)
{ {
result << constellation->getEnglishName(); result << constellation->getEnglishName();
} }
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 23 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/