61 |
// Overloaded assignment operator. |
// Overloaded assignment operator. |
62 |
EsysException& EsysException::operator=(const EsysException &inException) { |
EsysException& EsysException::operator=(const EsysException &inException) { |
63 |
if (this != &inException) { |
if (this != &inException) { |
64 |
// |
// |
65 |
// call the base class operator= |
// call the base class operator= |
66 |
this->exception::operator=(dynamic_cast<const exception&>(inException)); |
// win32 refactor: parent class operator= shares pointer the result is |
67 |
// |
// all classes try to free the same pointer, dies on windows badly. |
68 |
// copy the message buffer into this EsysException |
// this->exception::operator=(dynamic_cast<const exception&>(inException)); |
69 |
m_reason << inException.m_reason.str(); |
// |
70 |
|
// copy the message buffer into this EsysException |
71 |
|
m_reason << inException.m_reason.str(); // copy the message buffer into this EsysException |
72 |
} |
} |
73 |
return *this; |
return *this; |
74 |
} |
} |