diff options
author | Tao Bao <tbao@google.com> | 2018-07-10 18:50:33 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-07-10 18:50:33 +0200 |
commit | d8a2c2682a87dcd0d77708333a46a0472b403c9b (patch) | |
tree | 28768203f70081c7d5a76e872618ac0da67b735d /edify/include | |
parent | Merge "applypatch: Restrict applypatch_check to eMMC targets." (diff) | |
parent | Merge "edify: Remove VAL_INVALID and move ValueType into Value class." (diff) | |
download | android_bootable_recovery-d8a2c2682a87dcd0d77708333a46a0472b403c9b.tar android_bootable_recovery-d8a2c2682a87dcd0d77708333a46a0472b403c9b.tar.gz android_bootable_recovery-d8a2c2682a87dcd0d77708333a46a0472b403c9b.tar.bz2 android_bootable_recovery-d8a2c2682a87dcd0d77708333a46a0472b403c9b.tar.lz android_bootable_recovery-d8a2c2682a87dcd0d77708333a46a0472b403c9b.tar.xz android_bootable_recovery-d8a2c2682a87dcd0d77708333a46a0472b403c9b.tar.zst android_bootable_recovery-d8a2c2682a87dcd0d77708333a46a0472b403c9b.zip |
Diffstat (limited to 'edify/include')
-rw-r--r-- | edify/include/edify/expr.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/edify/include/edify/expr.h b/edify/include/edify/expr.h index 770d1cf0d..ccd200778 100644 --- a/edify/include/edify/expr.h +++ b/edify/include/edify/expr.h @@ -53,19 +53,16 @@ struct State { bool is_retry = false; }; -enum ValueType { - VAL_INVALID = -1, - VAL_STRING = 1, - VAL_BLOB = 2, -}; - struct Value { - ValueType type; - std::string data; + enum class Type { + STRING = 1, + BLOB = 2, + }; + + Value(Type type, const std::string& str) : type(type), data(str) {} - Value(ValueType type, const std::string& str) : - type(type), - data(str) {} + Type type; + std::string data; }; struct Expr; |