[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: khtml - render_text: Q3PtrVector->QVector
From:       David Faure <faure () kde ! org>
Date:       2006-06-27 23:15:13
Message-ID: 200606280115.14118.faure () kde ! org
[Download RAW message or body]

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).


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic