summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2013-10-29 19:22:49 (GMT)
committerSwift Review <review@swift.im>2013-10-29 20:32:32 (GMT)
commitf5bbaf8718496690ae70d6fbb2ffa28286b271dc (patch)
treed97e462d71efaefcd75f8354bdbfbb12ab879326 /Swiften
parent4c8290e3cf0c644e84083c17d5004e15e66b7d86 (diff)
downloadswift-f5bbaf8718496690ae70d6fbb2ffa28286b271dc.zip
swift-f5bbaf8718496690ae70d6fbb2ffa28286b271dc.tar.bz2
Fix unit test on Mavericks
Change-Id: I11101d660bb0debe85069eb3f2ed30987fa0d5ec
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Network/DomainNameServiceQuery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Network/DomainNameServiceQuery.cpp b/Swiften/Network/DomainNameServiceQuery.cpp
index 6ce1d97..5e87295 100644
--- a/Swiften/Network/DomainNameServiceQuery.cpp
+++ b/Swiften/Network/DomainNameServiceQuery.cpp
@@ -35,7 +35,7 @@ DomainNameServiceQuery::~DomainNameServiceQuery() {
void DomainNameServiceQuery::sortResults(std::vector<DomainNameServiceQuery::Result>& queries, RandomGenerator& generator) {
ResultPriorityComparator comparator;
- std::sort(queries.begin(), queries.end(), comparator);
+ std::stable_sort(queries.begin(), queries.end(), comparator);
std::vector<DomainNameServiceQuery::Result>::iterator i = queries.begin();
while (i != queries.end()) {