diff options
author | Max Bires <jbires@google.com> | 2021-07-01 05:52:22 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-07-01 05:52:22 +0000 |
commit | edfd5f7e2d4775bb3ddd11e33748b4b261d81e54 (patch) | |
tree | 3e79e701281b86b2db4ad63d8389b97d32475d1a | |
parent | e8a20d042027387a77ebbcb271bc9243fd795557 (diff) | |
parent | a03f9052e7324e827d7bdf03feb36fcbd08969e7 (diff) | |
download | keymaster-edfd5f7e2d4775bb3ddd11e33748b4b261d81e54.tar.gz |
Merge "Default initializing error_code_ to 0." into sc-dev
-rw-r--r-- | include/keymaster/remote_provisioning_utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/keymaster/remote_provisioning_utils.h b/include/keymaster/remote_provisioning_utils.h index 0309aad..e3781de 100644 --- a/include/keymaster/remote_provisioning_utils.h +++ b/include/keymaster/remote_provisioning_utils.h @@ -35,7 +35,8 @@ template <typename T> class StatusOr { public: StatusOr(uint32_t status_code) // NOLINT(google-explicit-constructor) : status_code_(status_code) {} - StatusOr(T val) : value_(std::move(val)) {} // NOLINT(google-explicit-constructor) + StatusOr(T val) + : status_code_(0), value_(std::move(val)) {} // NOLINT(google-explicit-constructor) bool isOk() { return status_code_ == 0; } |