Changeset 477 for library/tests/unittest-cpp/AssertException.cpp
- Timestamp:
- 08/05/09 14:40:03 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/unittest-cpp/AssertException.cpp
r418 r477 4 4 namespace UnitTest { 5 5 6 AssertException::AssertException(char const* description, char const* filename, int lineNumber) 7 : m_lineNumber(lineNumber) 8 { 6 AssertException::AssertException ( char const* description, char const* filename, int lineNumber ) 7 : m_lineNumber ( lineNumber ) { 9 8 using namespace std; 10 9 11 strcpy(m_description, description);12 strcpy(m_filename, filename);10 strcpy ( m_description, description ); 11 strcpy ( m_filename, filename ); 13 12 } 14 13 15 AssertException::~AssertException() throw() 16 { 14 AssertException::~AssertException() throw() { 17 15 } 18 16 19 char const* AssertException::what() const throw() 20 { 21 return m_description; 17 char const* AssertException::what() const throw() { 18 return m_description; 22 19 } 23 20 24 char const* AssertException::Filename() const 25 { 26 return m_filename; 21 char const* AssertException::Filename() const { 22 return m_filename; 27 23 } 28 24 29 int AssertException::LineNumber() const 30 { 31 return m_lineNumber; 25 int AssertException::LineNumber() const { 26 return m_lineNumber; 32 27 } 33 28