blob: a53c01bc1895a5decc9245df3ff3f8eb6cad5b28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- kleopatra/models/keylistmodel.cpp
+++ kleopatra/models/keylistmodel.cpp
@@ -73,7 +73,7 @@
#include <iterator>
#include <cassert>
-#ifdef __GNUC__
+#ifdef __GLIBCXX__
#include <ext/algorithm> // for is_sorted
#endif
@@ -460,7 +460,7 @@ QModelIndex FlatKeyListModel::doMapFromKey( const Key & key, int col ) const {
}
QList<QModelIndex> FlatKeyListModel::doAddKeys( const std::vector<Key> & keys ) {
-#ifdef __GNUC__
+#ifdef __GLIBCXX__
assert( __gnu_cxx::is_sorted( keys.begin(), keys.end(), _detail::ByFingerprint<std::less>() ) );
#endif
if ( keys.empty() )
@@ -717,7 +717,7 @@ static std::vector<Key> topological_sort( const std::vector<Key> & keys ) {
}
QList<QModelIndex> HierarchicalKeyListModel::doAddKeys( const std::vector<Key> & keys ) {
-#ifdef __GNUC__
+#ifdef __GLIBCXX__
assert( __gnu_cxx::is_sorted( keys.begin(), keys.end(), _detail::ByFingerprint<std::less>() ) );
#endif
if ( keys.empty() )
|