summaryrefslogtreecommitdiffstats
path: root/edify/expr.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-10-06 16:47:04 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-10-06 16:47:04 +0200
commite196918f5451b48d1c62dc9ef1bb700aa5fe365d (patch)
tree8ee15fecaf5d5f91521718c69ea7d9c0de79681c /edify/expr.cpp
parentMerge "vr_ui: drawing changes" (diff)
parentMerge "Don't include "error_code.h" in edify/expr.h." (diff)
downloadandroid_bootable_recovery-e196918f5451b48d1c62dc9ef1bb700aa5fe365d.tar
android_bootable_recovery-e196918f5451b48d1c62dc9ef1bb700aa5fe365d.tar.gz
android_bootable_recovery-e196918f5451b48d1c62dc9ef1bb700aa5fe365d.tar.bz2
android_bootable_recovery-e196918f5451b48d1c62dc9ef1bb700aa5fe365d.tar.lz
android_bootable_recovery-e196918f5451b48d1c62dc9ef1bb700aa5fe365d.tar.xz
android_bootable_recovery-e196918f5451b48d1c62dc9ef1bb700aa5fe365d.tar.zst
android_bootable_recovery-e196918f5451b48d1c62dc9ef1bb700aa5fe365d.zip
Diffstat (limited to 'edify/expr.cpp')
-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) {}