Slight optimization in Session::projectForFile

Avoid creating a copy of the list of projects.
This commit is contained in:
Thorbjørn Lindeijer
2008-12-05 15:58:19 +01:00
parent 310d50fd07
commit c14896b7d2
3 changed files with 21 additions and 20 deletions

View File

@@ -194,7 +194,7 @@ QString SearchSymbols::symbolName(const Symbol *symbol) const
void SearchSymbols::appendItem(const QString &name,
const QString &info,
ModelItemInfo::ItemType type,
const CPlusPlus::Symbol *symbol)
const Symbol *symbol)
{
const QIcon icon = icons.iconForSymbol(symbol);
items.append(ModelItemInfo(name, info, type,