diff options
Diffstat (limited to 'lldb/source/Core/Error.cpp')
-rw-r--r-- | lldb/source/Core/Error.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/source/Core/Error.cpp b/lldb/source/Core/Error.cpp index 104dfc6d693..ee7d6f21cda 100644 --- a/lldb/source/Core/Error.cpp +++ b/lldb/source/Core/Error.cpp @@ -27,6 +27,13 @@ using namespace lldb; using namespace lldb_private; +Error::Error (): + m_code (0), + m_type (eErrorTypeInvalid), + m_string () +{ +} + //---------------------------------------------------------------------- // Default constructor //---------------------------------------------------------------------- @@ -36,6 +43,14 @@ Error::Error(ValueType err, ErrorType type) : m_string () { } + +Error::Error (const Error &rhs) : + m_code (rhs.m_code), + m_type (rhs.m_type), + m_string (rhs.m_string) +{ +} + //---------------------------------------------------------------------- // Assignment operator //---------------------------------------------------------------------- |