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

Diff for /pegasus/src/Pegasus/Common/CIMParameter.cpp between version 1.30 and 1.31

version 1.30, 2007/10/19 18:22:02 version 1.31, 2008/10/22 08:19:40
Line 53 
Line 53 
  
 CIMParameter::CIMParameter(const CIMParameter& x) CIMParameter::CIMParameter(const CIMParameter& x)
 { {
     Inc(_rep = x._rep);      _rep = x._rep;
       if (_rep)
           _rep->Inc();
 } }
  
 CIMParameter::CIMParameter( CIMParameter::CIMParameter(
Line 74 
Line 76 
  
 CIMParameter::~CIMParameter() CIMParameter::~CIMParameter()
 { {
     Dec(_rep);      if (_rep)
           _rep->Dec();
 } }
  
 CIMParameter& CIMParameter::operator=(const CIMParameter& x) CIMParameter& CIMParameter::operator=(const CIMParameter& x)
 { {
     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 191 
Line 197 
  
 CIMConstParameter::CIMConstParameter(const CIMConstParameter& x) CIMConstParameter::CIMConstParameter(const CIMConstParameter& x)
 { {
     Inc(_rep = x._rep);      _rep = x._rep;
       if (_rep)
           _rep->Inc();
 } }
  
 CIMConstParameter::CIMConstParameter(const CIMParameter& x) CIMConstParameter::CIMConstParameter(const CIMParameter& x)
 { {
     Inc(_rep = x._rep);      _rep = x._rep;
       if (_rep)
           _rep->Inc();
 } }
  
 CIMConstParameter::CIMConstParameter( CIMConstParameter::CIMConstParameter(
Line 212 
Line 222 
  
 CIMConstParameter::~CIMConstParameter() CIMConstParameter::~CIMConstParameter()
 { {
     Dec(_rep);      if (_rep)
           _rep->Dec();
 } }
  
 CIMConstParameter& CIMConstParameter::operator=(const CIMConstParameter& x) CIMConstParameter& CIMConstParameter::operator=(const CIMConstParameter& x)
 { {
     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 229 
Line 244 
 { {
     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;
 } }


Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2