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

Diff for /pegasus/src/Pegasus/Common/Exception.cpp between version 1.81.4.1 and 1.81.4.2

version 1.81.4.1, 2007/03/27 17:23:38 version 1.81.4.2, 2008/02/13 20:45:48
Line 72 
Line 72 
     delete _rep;     delete _rep;
 } }
  
   Exception& Exception::operator=(const Exception& exception)
   {
       if (&exception != this)
       {
           *this->_rep = *exception._rep;
       }
       return *this;
   }
   
 const String& Exception::getMessage() const const String& Exception::getMessage() const
 { {
     return _rep->message;     return _rep->message;
Line 432 
Line 441 
     tmp->line = 0;     tmp->line = 0;
     _rep = tmp;     _rep = tmp;
 } }
   
 CIMException::CIMException(const CIMException & cimException) CIMException::CIMException(const CIMException & cimException)
     : Exception()     : Exception()
 { {
     CIMExceptionRep* tmp = new CIMExceptionRep();      _rep = new CIMExceptionRep(
     CIMExceptionRep* rep;          *reinterpret_cast<CIMExceptionRep*>(cimException._rep));
     rep = reinterpret_cast<CIMExceptionRep*>(cimException._rep);  
     tmp->message = rep->message;  
     tmp->contentLanguages = rep->contentLanguages;  
     tmp->cimMessage = rep->cimMessage;  
     tmp->code = rep->code;  
     tmp->file = rep->file;  
     tmp->line = rep->line;  
     tmp->errors = rep->errors;  
     _rep = tmp;  
 } }
  
 CIMException& CIMException::operator=(const CIMException & cimException) CIMException& CIMException::operator=(const CIMException & cimException)
 { {
     if (&cimException != this)     if (&cimException != this)
     {     {
         CIMExceptionRep* left;          CIMExceptionRep* left = reinterpret_cast<CIMExceptionRep*>(this->_rep);
         CIMExceptionRep* right;          CIMExceptionRep* right =
         left = reinterpret_cast<CIMExceptionRep*>(this->_rep);              reinterpret_cast<CIMExceptionRep*>(cimException._rep);
         right = reinterpret_cast<CIMExceptionRep*>(cimException._rep);          *left = *right;
         left->message = right->message;  
         left->contentLanguages = right->contentLanguages;  
         left->cimMessage = right->cimMessage;  
         left->code = right->code;  
         left->file = right->file;  
         left->line = right->line;  
         left->errors = right->errors;  
     }     }
     return *this;     return *this;
 } }


Legend:
Removed from v.1.81.4.1  
changed lines
  Added in v.1.81.4.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2