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