From 3a6d058740a9908a06efb9e9362df01acdee6ff8 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 17 Aug 2018 19:28:52 +0000 Subject: Rename CJS_Return to CJS_Result. "Return" is a verb, and "return" is a reserved-word at that, so avoid using it as part of a class name. Fully mechanical change apart from rename. Change-Id: I120e453e8ba001c4ab74a39e2da6aa6eb590835f Reviewed-on: https://pdfium-review.googlesource.com/40532 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- fxjs/js_define.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'fxjs/js_define.h') diff --git a/fxjs/js_define.h b/fxjs/js_define.h index ae1557eb02..0d8c43f86e 100644 --- a/fxjs/js_define.h +++ b/fxjs/js_define.h @@ -13,7 +13,7 @@ #include "core/fxcrt/unowned_ptr.h" #include "fxjs/cfxjs_engine.h" #include "fxjs/cjs_object.h" -#include "fxjs/cjs_return.h" +#include "fxjs/cjs_result.h" #include "fxjs/js_resources.h" #include "third_party/base/ptr_util.h" @@ -70,7 +70,7 @@ UnownedPtr JSGetObject(v8::Local obj) { return UnownedPtr(static_cast(pJSObj)); } -template +template void JSPropGetter(const char* prop_name_string, const char* class_name_string, v8::Local property, @@ -83,7 +83,7 @@ void JSPropGetter(const char* prop_name_string, if (!pRuntime) return; - CJS_Return result = (pObj.Get()->*M)(pRuntime); + CJS_Result result = (pObj.Get()->*M)(pRuntime); if (result.HasError()) { pRuntime->Error(JSFormatErrorString(class_name_string, prop_name_string, result.Error())); @@ -94,7 +94,7 @@ void JSPropGetter(const char* prop_name_string, info.GetReturnValue().Set(result.Return()); } -template )> +template )> void JSPropSetter(const char* prop_name_string, const char* class_name_string, v8::Local property, @@ -108,7 +108,7 @@ void JSPropSetter(const char* prop_name_string, if (!pRuntime) return; - CJS_Return result = (pObj.Get()->*M)(pRuntime, value); + CJS_Result result = (pObj.Get()->*M)(pRuntime, value); if (result.HasError()) { pRuntime->Error(JSFormatErrorString(class_name_string, prop_name_string, result.Error())); @@ -116,7 +116,7 @@ void JSPropSetter(const char* prop_name_string, } template >&)> void JSMethod(const char* method_name_string, const char* class_name_string, @@ -133,7 +133,7 @@ void JSMethod(const char* method_name_string, for (unsigned int i = 0; i < (unsigned int)info.Length(); i++) parameters.push_back(info[i]); - CJS_Return result = (pObj.Get()->*M)(pRuntime, parameters); + CJS_Result result = (pObj.Get()->*M)(pRuntime, parameters); if (result.HasError()) { pRuntime->Error(JSFormatErrorString(class_name_string, method_name_string, result.Error())); -- cgit v1.2.3