[Kde-pim] [patch] handling of static data in akonadi and mailtransport

Jaroslaw Staniek js at iidea.pl
Tue May 20 09:53:23 BST 2008


Tom Albers said the following, On 2008-05-20 09:50:
> Op dinsdag 20 mei 2008 09:43 schreef u:
>> Op dinsdag 20 mei 2008 09:17 schreef u:
>>> I'd like to commit if that's acceptable - to save trouble for our packagers.
>> Since you haven't tested it, I will do it this evening for the socket.cpp
>> change. Please do not commit until then.
>>
>> Toma
> 
> Oh, I could not find the reason of the socket.cpp change. Can you enlighten me why static is a bad idea?

Because it's a static block of data in a shared library, not app. If you use 
K_GLOBAL_STATIC, you know you'll have one global instance with initialized 
members.
See http://www.kdedevelopers.org/node/2889


-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice (http://www.kexi.pl/en, http://www.koffice.org/kexi)
  KDE Libraries for MS Windows (http://windows.kde.org)
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list