From 018935c9304bebf13fbad20b124d775ccae87fae Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 15 Apr 2016 13:15:12 -0700 Subject: Pass WideStrings without narrowing to c_str in javascript/ Avoid string duplication when the caller already has one. Review URL: https://codereview.chromium.org/1883273003 --- fpdfsdk/javascript/JS_Value.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk/javascript/JS_Value.h') diff --git a/fpdfsdk/javascript/JS_Value.h b/fpdfsdk/javascript/JS_Value.h index 423d7f62e1..8adec4b1d1 100644 --- a/fpdfsdk/javascript/JS_Value.h +++ b/fpdfsdk/javascript/JS_Value.h @@ -208,7 +208,7 @@ int JS_GetDayFromTime(double dt); int JS_GetHourFromTime(double dt); int JS_GetMinFromTime(double dt); int JS_GetSecFromTime(double dt); -double JS_DateParse(const wchar_t* str); +double JS_DateParse(const CFX_WideString& str); double JS_MakeDay(int nYear, int nMonth, int nDay); double JS_MakeTime(int nHour, int nMin, int nSec, int nMs); double JS_MakeDate(double day, double time); -- cgit v1.2.3