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

List:       kde-commits
Subject:    Re: branches/KDE/3.5/kdelibs/khtml
From:       Andras Mantia <amantia () kdewebdev ! org>
Date:       2005-08-16 16:05:06
Message-ID: 200508161905.06776.amantia () kdewebdev ! org
[Download RAW message or body]


On Tuesday 16 August 2005 19:36, David Faure wrote:
> On Tuesday 16 August 2005 12:13, Andras Mantia wrote:
> > > On Tuesday 16 August 2005 12.17, David Faure wrote:
> > >> > SVN commit 449438 by kling:
> > >> >
> > >> > Make sure there's a defaultHTMLSettings() around when fetching
> > >> > accessKeysEnabled setting. Should unbreak Quanta, as discussed
> > >> > on kfm-devel.
> > >>
> > >> Shouldn't this new+delete only be done when
> > >> defaultHTMLSettings() is 0?
> > >
> > > You are probably very right. :-)
> >
> > No, that would reintroduce the crash. defaultHTMLSettings() starts
> > with an "assert(s_self);". The whole KHTMLFactory class is strange
> > for me as it has static methods that cannot be called unless you
> > create an instance.
>
> OK, try
> KHTMLFactory::ref();
> ... defaultHTMLSettings() ...
> KHTMLFactory::deref();

::ref() and ::ref() is private, so one should use a "friend" 
declaration. I suggested on kfm-devel to not do it that way.

Andras

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org

[Attachment #3 (application/pgp-signature)]

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

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