summaryrefslogtreecommitdiffstats
path: root/qtools/qglist.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-10-03 13:21:15 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-10-03 13:21:15 (GMT)
commit33a334ce77e6dd0c81e97edc4bfba1fe50d947fa (patch)
tree7f2de915cb9ecab3e2ee51c49f175efd8eb5b30c /qtools/qglist.cpp
parent0d8c2bb9743f4ee862c740a6eedb228f28cd9725 (diff)
downloadDoxygen-33a334ce77e6dd0c81e97edc4bfba1fe50d947fa.zip
Doxygen-33a334ce77e6dd0c81e97edc4bfba1fe50d947fa.tar.gz
Doxygen-33a334ce77e6dd0c81e97edc4bfba1fe50d947fa.tar.bz2
refactoring: modernize search index
Also QVector has been removed from qtools as it was no longer used.
Diffstat (limited to 'qtools/qglist.cpp')
-rw-r--r--qtools/qglist.cpp28
1 files changed, 4 insertions, 24 deletions
diff --git a/qtools/qglist.cpp b/qtools/qglist.cpp
index 8197db5..878aa04 100644
--- a/qtools/qglist.cpp
+++ b/qtools/qglist.cpp
@@ -1,5 +1,5 @@
/****************************************************************************
-**
+**
**
** Implementation of QGList and QGListIterator classes
**
@@ -36,7 +36,6 @@
**********************************************************************/
#include "qglist.h"
-#include "qgvector.h"
#include "qdatastream.h"
@@ -243,10 +242,10 @@ bool QGList::operator==( const QGList &list ) const
{
if ( count() != list.count() )
return FALSE;
-
+
if ( count() == 0 )
return TRUE;
-
+
QLNode *n1 = firstNode;
QLNode *n2 = list.firstNode;
while ( n1 && n2 ) {
@@ -256,7 +255,7 @@ bool QGList::operator==( const QGList &list ) const
n1 = n1->next;
n2 = n2->next;
}
-
+
return TRUE;
}
@@ -866,25 +865,6 @@ QCollection::Item QGList::prev()
}
-/*!
- \internal
- Converts the list to a vector.
-*/
-
-void QGList::toVector( QGVector *vector ) const
-{
- vector->clear();
- if ( !vector->resize( count() ) )
- return;
- QLNode *n = firstNode;
- uint i = 0;
- while ( n ) {
- vector->insert( i, n->data );
- n = n->next;
- i++;
- }
-}
-
void QGList::heapSortPushDown( QCollection::Item* heap, int first, int last )
{
int r = first;