diff options
author | Lei Zhang <thestig@chromium.org> | 2018-07-12 19:05:10 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-12 19:05:10 +0000 |
commit | 47aff85a5f80cc3cd3a7c55869ab777c407bbf11 (patch) | |
tree | b74a52e4c11835e7483e0397dd49f58784a6fc79 /fxjs/cjs_return.cpp | |
parent | ec4d28f844e72dbe47b9c6d464abc04d947b4bf5 (diff) | |
download | pdfium-47aff85a5f80cc3cd3a7c55869ab777c407bbf11.tar.xz |
Use pdfium::Optional in CJS_Return.
Change-Id: Idfe70f86fbaf341ba6b197689a65ac722e671f39
Reviewed-on: https://pdfium-review.googlesource.com/37674
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fxjs/cjs_return.cpp')
-rw-r--r-- | fxjs/cjs_return.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fxjs/cjs_return.cpp b/fxjs/cjs_return.cpp index 53ac5c0a28..49ad54ab07 100644 --- a/fxjs/cjs_return.cpp +++ b/fxjs/cjs_return.cpp @@ -6,12 +6,11 @@ #include "fxjs/cjs_return.h" -CJS_Return::CJS_Return() : is_error_(false) {} +CJS_Return::CJS_Return() {} -CJS_Return::CJS_Return(v8::Local<v8::Value> ret) - : is_error_(false), return_(ret) {} +CJS_Return::CJS_Return(v8::Local<v8::Value> ret) : return_(ret) {} -CJS_Return::CJS_Return(const WideString& err) : is_error_(true), error_(err) {} +CJS_Return::CJS_Return(const WideString& err) : error_(err) {} CJS_Return::CJS_Return(JSMessage id) : CJS_Return(JSGetStringFromID(id)) {} |