diff options
author | Tao Bao <tbao@google.com> | 2017-10-06 16:37:21 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-10-06 16:37:21 +0200 |
commit | d999ced1d119d78645e1b458dfc3574729d5ac20 (patch) | |
tree | bea09e79cd5bd6d853d3e8b16fbc17a0f04508fb /edify/expr.cpp | |
parent | Merge "vr_ui: drawing changes" (diff) | |
parent | Don't include "error_code.h" in edify/expr.h. (diff) | |
download | android_bootable_recovery-d999ced1d119d78645e1b458dfc3574729d5ac20.tar android_bootable_recovery-d999ced1d119d78645e1b458dfc3574729d5ac20.tar.gz android_bootable_recovery-d999ced1d119d78645e1b458dfc3574729d5ac20.tar.bz2 android_bootable_recovery-d999ced1d119d78645e1b458dfc3574729d5ac20.tar.lz android_bootable_recovery-d999ced1d119d78645e1b458dfc3574729d5ac20.tar.xz android_bootable_recovery-d999ced1d119d78645e1b458dfc3574729d5ac20.tar.zst android_bootable_recovery-d999ced1d119d78645e1b458dfc3574729d5ac20.zip |
Diffstat (limited to '')
-rw-r--r-- | edify/expr.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/edify/expr.cpp b/edify/expr.cpp index 54ab3325c..403162d6d 100644 --- a/edify/expr.cpp +++ b/edify/expr.cpp @@ -31,6 +31,8 @@ #include <android-base/stringprintf.h> #include <android-base/strings.h> +#include "error_code.h" + // Functions should: // // - return a malloc()'d string @@ -416,8 +418,5 @@ Value* ErrorAbort(State* state, CauseCode cause_code, const char* format, ...) { return nullptr; } -State::State(const std::string& script, void* cookie) : - script(script), - cookie(cookie) { -} - +State::State(const std::string& script, void* cookie) + : script(script), cookie(cookie), error_code(kNoError), cause_code(kNoCause) {} |