From c6dc69fb69e5d9974aa451d590194d568b78131b Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 23 Feb 2017 09:53:09 -0800 Subject: Store JS string constants as single-byte strings. Save some space since none contain non-ascii characters. Avoid allocating C++ WideStrings just to convert back to UTF8 when defining properties. Change-Id: Id94db21b32ee7a96856c35a09f7550b54599ae13 Reviewed-on: https://pdfium-review.googlesource.com/2826 Reviewed-by: dsinclair Commit-Queue: dsinclair --- fpdfsdk/javascript/JS_Define.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk/javascript/JS_Define.h') diff --git a/fpdfsdk/javascript/JS_Define.h b/fpdfsdk/javascript/JS_Define.h index 0bd3a5e722..ee7448c649 100644 --- a/fpdfsdk/javascript/JS_Define.h +++ b/fpdfsdk/javascript/JS_Define.h @@ -20,7 +20,7 @@ struct JSConstSpec { const char* pName; Type eType; double number; - const wchar_t* pStr; + const char* pStr; }; struct JSPropertySpec { -- cgit v1.2.3