(file) Return to CMPI_ObjectPath.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2 / CMPI

Diff for /pegasus/src/Pegasus/ProviderManager2/CMPI/CMPI_ObjectPath.cpp between version 1.28.4.10 and 1.28.4.11

version 1.28.4.10, 2009/10/27 18:38:12 version 1.28.4.11, 2009/10/30 13:04:14
Line 80 
Line 80 
             // Since we make no difference between ObjectPath and Instance,             // Since we make no difference between ObjectPath and Instance,
             // we simply clone using the ObjectPathOnly option.             // we simply clone using the ObjectPathOnly option.
             SCMOInstance* nRef = new SCMOInstance(ref->clone(true));             SCMOInstance* nRef = new SCMOInstance(ref->clone(true));
               CMPI_Object* obj =
                   new CMPI_Object(nRef,CMPI_Object::ObjectTypeObjectPath);
               obj->unlink();
             CMPIObjectPath* cmpiObjPath =             CMPIObjectPath* cmpiObjPath =
                 reinterpret_cast<CMPIObjectPath *>                  reinterpret_cast<CMPIObjectPath *>(obj);
                 (new CMPI_Object(nRef,CMPI_Object::ObjectTypeObjectPath));  
             CMSetStatus(rc,CMPI_RC_OK);             CMSetStatus(rc,CMPI_RC_OK);
             return cmpiObjPath;             return cmpiObjPath;
         }         }
Line 626 
Line 628 
 CMPIObjectPathFT *CMPI_ObjectPathOnStack_Ftab = &objectPathOnStack_FT; CMPIObjectPathFT *CMPI_ObjectPathOnStack_Ftab = &objectPathOnStack_FT;
  
  
   CMPI_ObjectPathOnStack::CMPI_ObjectPathOnStack(const SCMOInstance* cop)
   {
       hdl = (void*)cop;
       ft = CMPI_ObjectPathOnStack_Ftab;
   }
   
 CMPI_ObjectPathOnStack::CMPI_ObjectPathOnStack(const SCMOInstance& cop) CMPI_ObjectPathOnStack::CMPI_ObjectPathOnStack(const SCMOInstance& cop)
 { {
     hdl = (void*)&cop;      hdl = (void*) new SCMOInstance(cop);
     ft = CMPI_ObjectPathOnStack_Ftab;     ft = CMPI_ObjectPathOnStack_Ftab;
 } }
  
   CMPI_ObjectPathOnStack::~CMPI_ObjectPathOnStack()
   {
       if (hdl)
       {
           delete((SCMOInstance*)hdl);
       }
   }
   
  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  


Legend:
Removed from v.1.28.4.10  
changed lines
  Added in v.1.28.4.11

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2