Changeset 104936 in webkit


Ignore:
Timestamp:
Jan 13, 2012 7:44:44 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Add OwnPtr specialization for Eina_Module.
https://bugs.webkit.org/show_bug.cgi?id=76255

Patch by YoungTaeck Song <youngtaeck.song@samsung.com> on 2012-01-13
Reviewed by Andreas Kling.

Add an overload for deleteOwnedPtr(Eina_Module*) on EFL port.

  • wtf/OwnPtrCommon.h:
  • wtf/efl/OwnPtrEfl.cpp:

(WTF::deleteOwnedPtr):

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r104901 r104936  
     12012-01-13  YoungTaeck Song  <youngtaeck.song@samsung.com>
     2
     3        [EFL] Add OwnPtr specialization for Eina_Module.
     4        https://bugs.webkit.org/show_bug.cgi?id=76255
     5
     6        Reviewed by Andreas Kling.
     7
     8        Add an overload for deleteOwnedPtr(Eina_Module*) on EFL port.
     9
     10        * wtf/OwnPtrCommon.h:
     11        * wtf/efl/OwnPtrEfl.cpp:
     12        (WTF::deleteOwnedPtr):
     13
    1142012-01-13  Yuqiang Xian  <yuqiang.xian@intel.com>
    215
  • trunk/Source/JavaScriptCore/wtf/OwnPtrCommon.h

    r95901 r104936  
    4242typedef struct _Ecore_Evas Ecore_Evas;
    4343typedef struct _Ecore_Pipe Ecore_Pipe;
     44typedef struct _Eina_Module Eina_Module;
    4445typedef struct _Evas_Object Evas_Object;
    4546#endif
     
    6768    void deleteOwnedPtr(Ecore_Evas*);
    6869    void deleteOwnedPtr(Ecore_Pipe*);
     70    void deleteOwnedPtr(Eina_Module*);
    6971    void deleteOwnedPtr(Evas_Object*);
    7072#endif
  • trunk/Source/JavaScriptCore/wtf/efl/OwnPtrEfl.cpp

    r95901 r104936  
    3030#include <Ecore.h>
    3131#include <Ecore_Evas.h>
     32#include <Eina.h>
    3233#include <Evas.h>
    3334
     
    5152}
    5253
     54void deleteOwnedPtr(Eina_Module* ptr)
     55{
     56    if (ptr)
     57        eina_module_free(ptr); // If module wasn't unloaded, eina_module_free() calls eina_module_unload().
    5358}
     59
     60}
Note: See TracChangeset for help on using the changeset viewer.