khtml - render_text: Q3PtrVector->QVector

David Faure faure at kde.org
Wed Jun 28 00:15:13 BST 2006


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 at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list