From kde-core-devel Tue Jun 27 23:15:13 2006 From: David Faure Date: Tue, 27 Jun 2006 23:15:13 +0000 To: kde-core-devel Subject: Re: khtml - render_text: Q3PtrVector->QVector Message-Id: <200606280115.14118.faure () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=115145012424552 On Tuesday 27 June 2006 22:29, Peter Kümmel wrote: > I get a strange linker error when compiling > khtml with msvc: it could not find Q3GVector::at, > even though this function is an inline function. > Maybe this is because of the debug mode, but trying > to force the inlining doesn't work. > > Before fiddling around with this Q3Support code > I've used QVector instead, which solves the linker > error. > > Is it possible to apply the attached patch? The > only point where I'm not sure is the replacement > of the 'compareItems' function: You need to get rid of the QVector subclass and move the comparison code to a static method which you then pass to qSort (third argument). Which also means calling qSort from the code... -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).