Ignore:
Timestamp:
Feb 4, 2007, 10:26:27 AM (19 years ago)
Author:
cinc
Message:

Remove finalizer from object before deleting it using delete(). Some other minor changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/nom/class_c/nomclassmanager.c

    r221 r222  
    8989  mtab=g_datalist_get_data(&_gdataClassList, className);
    9090
    91   nomPrintf("-----> %s %s %x\n", __FUNCTION__, className, mtab);
     91  //nomPrintf("-----> %s %s %x\n", __FUNCTION__, className, mtab);
    9292
    9393  if(mtab){
     
    225225}
    226226
     227/**
     228   \brief Function which implements the nomSubstituteClass() method of NOMClassMgr.
     229 */
     230NOM_Scope CORBA_boolean NOMLINK impl_NOMClassMgr_nomSubstituteClass(NOMClassMgr* nomSelf,
     231                                                                    const CORBA_char * oldClass,
     232                                                                    const CORBA_char * replacementClass,
     233                                                                    CORBA_Environment *ev)
     234{
     235/* NOMClassMgrData* nomThis=NOMClassMgrGetData(nomSelf); */
     236  NOMObject* oClass;
     237  NOMObject* rClass;
     238
     239  if((oClass=_nomFindClassFromName( nomSelf, oldClass, 0, 0, NULLHANDLE))==NULLHANDLE)
     240    return FALSE;
     241
     242  if((rClass=_nomFindClassFromName( nomSelf, replacementClass, 0, 0, NULLHANDLE))==NULLHANDLE)
     243    return FALSE;
     244
     245  /* Save old class object pointer. Hmm, maybe not it's still in the old parentMtab */
     246
     247  /* Change the class object pointer in the nomClassDataStructure */
     248
     249  /* Reregister old class with new mtab in the internal list. Make sure we don't get
     250     a warning by GLib */
     251
     252  return FALSE;
     253}
     254
    227255static
    228256int nomClassMgrCompareFunc(gconstpointer a, gconstpointer b)
Note: See TracChangeset for help on using the changeset viewer.