summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/projectmodels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/projectexplorer/projectmodels.cpp')
-rw-r--r--src/plugins/projectexplorer/projectmodels.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp
index 122c2e5317..9e08a27505 100644
--- a/src/plugins/projectexplorer/projectmodels.cpp
+++ b/src/plugins/projectexplorer/projectmodels.cpp
@@ -75,9 +75,8 @@ bool sortNodes(Node *n1, Node *n2)
return true; // project file is before everything else
}
} else {
- if (file2 && file2->fileType() == ProjectFileType) {
+ if (file2 && file2->fileType() == ProjectFileType)
return false;
- }
}
// projects
@@ -151,11 +150,10 @@ bool sortNodes(Node *n1, Node *n2)
return result < 0; // sort by filename
} else {
result = caseFriendlyCompare(filePath1, filePath2);
- if (result != 0) {
+ if (result != 0)
return result < 0; // sort by filepath
- } else {
+ else
return n1 < n2; // sort by pointer value
- }
}
}
return false;