Index: rendering/render_text.h
===================================================================
--- rendering/render_text.h	(revision 555414)
+++ rendering/render_text.h	(working copy)
@@ -30,7 +30,7 @@
 #include "rendering/render_object.h"
 #include "rendering/render_line.h"
 
-#include <q3ptrvector.h>
+#include <qvector.h>
 #include <assert.h>
 
 class QPainter;
@@ -133,15 +133,15 @@
     friend class RenderText;
 };
 
-class InlineTextBoxArray : public Q3PtrVector<InlineTextBox>
+class InlineTextBoxArray : public QVector<InlineTextBox*>
 {
 public:
     InlineTextBoxArray();
 
     InlineTextBox* first();
 
-    int	  findFirstMatching( Item ) const;
-    virtual int compareItems( Item, Item );
+    int	  findFirstMatching( InlineTextBox* ) const;
+    virtual int compareItems( InlineTextBox*, InlineTextBox* );
 };
 
 class RenderText : public RenderObject
Index: rendering/render_text.cpp
===================================================================
--- rendering/render_text.cpp	(revision 555414)
+++ rendering/render_text.cpp	(working copy)
@@ -487,19 +487,18 @@
 
 InlineTextBoxArray::InlineTextBoxArray()
 {
-    setAutoDelete(false);
 }
 
-int InlineTextBoxArray::compareItems( Item d1, Item d2 )
+int InlineTextBoxArray::compareItems( InlineTextBox* d1, InlineTextBox* d2 )
 {
     assert(d1);
     assert(d2);
 
-    return static_cast<InlineTextBox*>(d1)->m_y - static_cast<InlineTextBox*>(d2)->m_y;
+    return d1->m_y - d2->m_y;
 }
 
 // remove this once QVector::bsearch is fixed
-int InlineTextBoxArray::findFirstMatching(Item d) const
+int InlineTextBoxArray::findFirstMatching(InlineTextBox* d) const
 {
     int len = count();
 
@@ -517,7 +516,7 @@
 	if ( (*this)[mid] == 0 )			// null item greater
 	    res = -1;
 	else
-	    res = ((Q3GVector*)this)->compareItems( d, (*this)[mid] );
+	    res = d != (*this)[mid] ;
 	if ( res < 0 )
 	    n2 = mid - 1;
 	else if ( res > 0 )
@@ -530,7 +529,7 @@
     /* if ( !found )
 	return -1; */
     // search to first one equal or bigger
-    while ( found && (mid > 0) && !((Q3GVector*)this)->compareItems(d, (*this)[mid-1]) )
+    while ( found && (mid > 0) && !( d != (*this)[mid-1] ) )
 	mid--;
     return mid;
 }
