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

List:       kde-devel
Subject:    Re: What happened to KStaticDeleter
From:       "koos vriezen" <koos.vriezen () gmail ! com>
Date:       2007-09-30 10:20:47
Message-ID: d4e708d60709300320t593b93c0o98a0b9da5549ede1 () mail ! gmail ! com
[Download RAW message or body]

2007/9/30, Thiago Macieira <thiago@kde.org>:
> koos vriezen wrote:
> >Hi,
> >
> >For a kpart I use KStaticDeleter in kde3. This seems to be gone in
> >kde4, no info about this on techbase or porting guide. Googling gives
> >some pointers to Q_GLOBAL_STATIC, but that doesn't seem to delete it
> >on part onload.
> >Is that correct and how to port this? Btw, its only about resetting a
> >shared object after all part instances are unloaded.
>
> K_GLOBAL_STATIC is what you want.
>
> It's deleted on unload (= application exit, since we don't unload
> modules).

Verified in kde3 and indeed only at application exit. How stupid of me
to never test this, I don't need it then ..

Thanks,
Koos
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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