[Webkit-unassigned] [Bug 80119] [EFL] Add OwnPtr specialization for Ecore_Timer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 5 17:38:59 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=80119





--- Comment #11 from YoungTaeck Song <youngtaeck.song at samsung.com>  2012-03-05 17:38:59 PST ---
(In reply to comment #9)
> (From update of attachment 130066 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=130066&action=review
> 
> > Source/WebCore/platform/efl/SharedTimerEfl.cpp:41
> > -static Ecore_Timer *_sharedTimer = 0;
> > +static OwnPtr<Ecore_Timer> sharedTimer;
> 
> Declaring a static object like this makes the code prone to all sorts of problems, since you can't guarantee when this object will be initialized. Either keep the old version, or use the DEFINE_STATIC_LOCAL macro to make sure the object is created on first use.

Thanks for your review.
We decided to keep the old version.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list