Skip to content

Commit 6782795

Browse files
author
Dimitri van Heesch
committed
Minor performance improvement sorting directories
1 parent 7dc9b37 commit 6782795

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dirdef.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,9 @@ bool DirDef::depGraphIsTrivial() const
620620
int FilePairDict::compareValues(const FilePair *left,const FilePair *right) const
621621
{
622622
int orderHi = qstricmp(left->source()->name(),right->source()->name());
623+
if (orderHi!=0) return orderHi;
623624
int orderLo = qstricmp(left->destination()->name(),right->destination()->name());
624-
return orderHi==0 ? orderLo : orderHi;
625+
return orderLo;
625626
}
626627

627628
//----------------------------------------------------------------------

0 commit comments

Comments
 (0)