aboutsummaryrefslogtreecommitdiff
path: root/lldb/include/lldb/Utility/Status.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/include/lldb/Utility/Status.h')
-rw-r--r--lldb/include/lldb/Utility/Status.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lldb/include/lldb/Utility/Status.h b/lldb/include/lldb/Utility/Status.h
index 9babad18edc0..61d663bdccba 100644
--- a/lldb/include/lldb/Utility/Status.h
+++ b/lldb/include/lldb/Utility/Status.h
@@ -15,7 +15,7 @@
#include "llvm/Support/Error.h"
#include "llvm/Support/FormatVariadic.h"
#include <cstdarg>
-#include <stdint.h>
+#include <cstdint>
#include <string>
#include <system_error>
#include <type_traits>
@@ -196,8 +196,9 @@ public:
protected:
/// Member variables
- ValueType m_code; ///< Status code as an integer value.
- lldb::ErrorType m_type; ///< The type of the above error code.
+ ValueType m_code = 0; ///< Status code as an integer value.
+ lldb::ErrorType m_type =
+ lldb::eErrorTypeInvalid; ///< The type of the above error code.
mutable std::string m_string; ///< A string representation of the error code.
};