summaryrefslogtreecommitdiffstats
path: root/edify/expr.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-10-06 16:37:21 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-10-06 16:37:21 +0200
commitd999ced1d119d78645e1b458dfc3574729d5ac20 (patch)
treebea09e79cd5bd6d853d3e8b16fbc17a0f04508fb /edify/expr.cpp
parentMerge "vr_ui: drawing changes" (diff)
parentDon't include "error_code.h" in edify/expr.h. (diff)
downloadandroid_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.cpp9
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) {}