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/jse_define.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fxjs/jse_define.h') diff --git a/fxjs/jse_define.h b/fxjs/jse_define.h index ddc9d591f1..373917fe6a 100644 --- a/fxjs/jse_define.h +++ b/fxjs/jse_define.h @@ -10,25 +10,25 @@ #include #include "fxjs/cfx_v8.h" -#include "fxjs/cjs_return.h" +#include "fxjs/cjs_result.h" template >& params)> -CJS_Return JSMethod(C* node, +CJS_Result JSMethod(C* node, CFX_V8* runtime, const std::vector>& params) { return (node->*M)(runtime, params); } #define JSE_METHOD(method_name, class_name) \ - static CJS_Return method_name##_static( \ + static CJS_Result method_name##_static( \ CJX_Object* node, CFX_V8* runtime, \ const std::vector>& params) { \ return JSMethod( \ static_cast(node), runtime, params); \ } \ - CJS_Return method_name(CFX_V8* runtime, \ + CJS_Result method_name(CFX_V8* runtime, \ const std::vector>& params) #define JSE_PROP(prop_name) \ -- cgit v1.2.3