Skip to content

Commit

Permalink
Minor performance improvement sorting directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Jan 31, 2016
1 parent 7dc9b37 commit 6782795
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dirdef.cpp
Expand Up @@ -620,8 +620,9 @@ bool DirDef::depGraphIsTrivial() const
int FilePairDict::compareValues(const FilePair *left,const FilePair *right) const
{
int orderHi = qstricmp(left->source()->name(),right->source()->name());
if (orderHi!=0) return orderHi;
int orderLo = qstricmp(left->destination()->name(),right->destination()->name());
return orderHi==0 ? orderLo : orderHi;
return orderLo;
}

//----------------------------------------------------------------------
Expand Down

0 comments on commit 6782795

Please sign in to comment.