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

Diff for /pegasus/src/Pegasus/Common/CIMValue.cpp between version 1.64 and 1.65

version 1.64, 2005/12/02 18:25:52 version 1.65, 2005/12/07 21:11:35
Line 1133 
Line 1133 
         throw TypeMismatchException();         throw TypeMismatchException();
  
     if (!_rep->isNull)     if (!_rep->isNull)
           // We have to clone our own unique copy since we are about to
           // return an object to the caller that he can modify; thereby,
           // changing the one we refer to as well.
         x = CIMValueType<CIMObject>::ref(_rep).clone();         x = CIMValueType<CIMObject>::ref(_rep).clone();
 } }
  
Line 1278 
Line 1281 
  
     if (!_rep->isNull)     if (!_rep->isNull)
     {     {
         if (_rep->refs.get() != 1)          x.clear();
         {  
             // We have to make our own unique copy since we are about to          // We have to clone our own unique copy since we are about to
             // return an object to the caller that he can modify; thereby,             // return an object to the caller that he can modify; thereby,
             // changing the one we refer to as well.             // changing the one we refer to as well.
             Array<CIMObject> tmp = CIMValueType<CIMObject>::aref(_rep);          for (Uint32 i = 0, n = CIMValueType<CIMObject>::arraySize(_rep); i < n; i++)
             ((CIMValue*)this)->set(tmp);          {
               x.append(CIMValueType<CIMObject>::aref(_rep)[i].clone());
         }         }
   
         x = CIMValueType<CIMObject>::aref(_rep);  
     }     }
 } }
  


Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2