mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
cpp: Sorting and speed improved
git-svn-id: svn://ultimatepp.org/upp/trunk@8495 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c1b2a4a5dc
commit
41521abc81
3 changed files with 6 additions and 8 deletions
|
|
@ -315,10 +315,10 @@ void AssistEditor::SyncAssist()
|
|||
}
|
||||
}
|
||||
}
|
||||
if(!include_assist) {
|
||||
LTIMING("Sort assist");
|
||||
assist.Sort(0, CppItemInfoOrder);
|
||||
}
|
||||
// if(!include_assist) {
|
||||
// LTIMING("Sort assist");
|
||||
// assist.Sort(0, CppItemInfoOrder);
|
||||
// }
|
||||
}
|
||||
|
||||
bool AssistEditor::IncludeAssist()
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ void SerializeCodeBase(Stream& s)
|
|||
CodeBase().Serialize(s);
|
||||
}
|
||||
|
||||
#define CPP_CODEBASE_VERSION 9
|
||||
#define CPP_CODEBASE_VERSION 10
|
||||
|
||||
void SaveCodeBase()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -354,9 +354,7 @@ void AssistEditor::GatherItems(const String& type, bool only_public, Index<Strin
|
|||
|
||||
bool OrderAssistItems(const CppItemInfo& a, const CppItemInfo& b)
|
||||
{
|
||||
if(a.typei != b.typei)
|
||||
return a.typei < b.typei;
|
||||
return a.qitem < b.qitem;
|
||||
return CombineCompare(a.uname, b.uname)(a.typei, b.typei)(a.qitem, b.qitem) < 0;
|
||||
}
|
||||
|
||||
void AssistEditor::RemoveDuplicates()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue