-rw-r--r-- | qmake/include/qtl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qmake/include/qtl.h b/qmake/include/qtl.h index 346cecc..25631fd 100644 --- a/qmake/include/qtl.h +++ b/qmake/include/qtl.h | |||
@@ -80,24 +80,25 @@ inline OutputIterator qCopy( InputIterator _begin, InputIterator _end, | |||
80 | template <class BiIterator, class BiOutputIterator> | 80 | template <class BiIterator, class BiOutputIterator> |
81 | inline BiOutputIterator qCopyBackward( BiIterator _begin, BiIterator _end, | 81 | inline BiOutputIterator qCopyBackward( BiIterator _begin, BiIterator _end, |
82 | BiOutputIterator _dest ) | 82 | BiOutputIterator _dest ) |
83 | { | 83 | { |
84 | while ( _begin != _end ) | 84 | while ( _begin != _end ) |
85 | *--_dest = *--_end; | 85 | *--_dest = *--_end; |
86 | return _dest; | 86 | return _dest; |
87 | } | 87 | } |
88 | 88 | ||
89 | template <class InputIterator1, class InputIterator2> | 89 | template <class InputIterator1, class InputIterator2> |
90 | inline bool qEqual( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2 ) | 90 | inline bool qEqual( InputIterator1 first1, InputIterator1 last1, InputIterator2 first2 ) |
91 | { | 91 | { |
92 | // ### compare using !(*first1 == *first2) in Qt 4.0 | ||
92 | for ( ; first1 != last1; ++first1, ++first2 ) | 93 | for ( ; first1 != last1; ++first1, ++first2 ) |
93 | if ( *first1 != *first2 ) | 94 | if ( *first1 != *first2 ) |
94 | return FALSE; | 95 | return FALSE; |
95 | return TRUE; | 96 | return TRUE; |
96 | } | 97 | } |
97 | 98 | ||
98 | template <class ForwardIterator, class T> | 99 | template <class ForwardIterator, class T> |
99 | inline void qFill( ForwardIterator first, ForwardIterator last, const T& val ) | 100 | inline void qFill( ForwardIterator first, ForwardIterator last, const T& val ) |
100 | { | 101 | { |
101 | for ( ; first != last; ++first ) | 102 | for ( ; first != last; ++first ) |
102 | *first = val; | 103 | *first = val; |
103 | } | 104 | } |