(file) Return to CIMInstance.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CIMInstance.cpp between version 1.47 and 1.48

version 1.47, 2008/03/05 21:31:44 version 1.48, 2008/10/22 08:19:39
Line 57 
Line 57 
  
 CIMInstance::CIMInstance(const CIMInstance& x) CIMInstance::CIMInstance(const CIMInstance& x)
 { {
     Inc(_rep = x._rep);      _rep = x._rep;
       if (_rep)
           _rep->Inc();
 } }
  
 CIMInstance::CIMInstance(const CIMObject& x) CIMInstance::CIMInstance(const CIMObject& x)
 { {
     if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep)))     if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep)))
         throw DynamicCastFailedException();         throw DynamicCastFailedException();
     Inc(_rep);      _rep->Inc();
 } }
  
 CIMInstance::CIMInstance(const CIMName& className) CIMInstance::CIMInstance(const CIMName& className)
Line 82 
Line 84 
 { {
     if (x._rep != _rep)     if (x._rep != _rep)
     {     {
         Dec(_rep);          if (_rep)
         Inc(_rep = x._rep);              _rep->Dec();
           _rep = x._rep;
           if (_rep)
               _rep->Inc();
     }     }
     return *this;     return *this;
 } }
  
 CIMInstance::~CIMInstance() CIMInstance::~CIMInstance()
 { {
     Dec(_rep);      if (_rep)
           _rep->Dec();
 } }
  
 const CIMName& CIMInstance::getClassName() const const CIMName& CIMInstance::getClassName() const
Line 228 
Line 234 
  
 CIMConstInstance::CIMConstInstance(const CIMConstInstance& x) CIMConstInstance::CIMConstInstance(const CIMConstInstance& x)
 { {
     Inc(_rep = x._rep);      _rep = x._rep;
       if (_rep)
           _rep->Inc();
 } }
  
 CIMConstInstance::CIMConstInstance(const CIMInstance& x) CIMConstInstance::CIMConstInstance(const CIMInstance& x)
 { {
     Inc(_rep = x._rep);      _rep = x._rep;
       if (_rep)
           _rep->Inc();
 } }
  
 CIMConstInstance::CIMConstInstance(const CIMObject& x) CIMConstInstance::CIMConstInstance(const CIMObject& x)
 { {
     if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep)))     if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep)))
         throw DynamicCastFailedException();         throw DynamicCastFailedException();
     Inc(_rep);      _rep->Inc();
 } }
  
 CIMConstInstance::CIMConstInstance(const CIMConstObject& x) CIMConstInstance::CIMConstInstance(const CIMConstObject& x)
 { {
     if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep)))     if (!(_rep = dynamic_cast<CIMInstanceRep*>(x._rep)))
         throw DynamicCastFailedException();         throw DynamicCastFailedException();
     Inc(_rep);      _rep->Inc();
 } }
  
 CIMConstInstance::CIMConstInstance(const CIMName& className) CIMConstInstance::CIMConstInstance(const CIMName& className)
Line 260 
Line 270 
 { {
     if (x._rep != _rep)     if (x._rep != _rep)
     {     {
         Dec(_rep);          if (_rep)
         Inc(_rep = x._rep);              _rep->Dec();
           _rep = x._rep;
           if (_rep)
               _rep->Inc();
     }     }
     return *this;     return *this;
 } }
Line 270 
Line 283 
 { {
     if (x._rep != _rep)     if (x._rep != _rep)
     {     {
         Dec(_rep);          if (_rep)
         Inc(_rep = x._rep);              _rep->Dec();
           _rep = x._rep;
           if (_rep)
               _rep->Inc();
     }     }
     return *this;     return *this;
 } }
  
 CIMConstInstance::~CIMConstInstance() CIMConstInstance::~CIMConstInstance()
 { {
     Dec(_rep);      if (_rep)
           _rep->Dec();
 } }
  
 const CIMName& CIMConstInstance::getClassName() const const CIMName& CIMConstInstance::getClassName() const


Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2