From 35939f83e45b67de4ccc8c3e70e5e00be40326b6 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 17 Apr 2018 21:23:58 +0000 Subject: Avoid some string -> ptr -> string duplicate allocations in FF Environment Change-Id: I4bd89b64cd77a4e2fe0ffc2dcc415cc8fe34667a Reviewed-on: https://pdfium-review.googlesource.com/30871 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- fxjs/cjs_publicmethods.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fxjs/cjs_publicmethods.cpp') diff --git a/fxjs/cjs_publicmethods.cpp b/fxjs/cjs_publicmethods.cpp index 8dc69c4a00..6f49940494 100644 --- a/fxjs/cjs_publicmethods.cpp +++ b/fxjs/cjs_publicmethods.cpp @@ -81,7 +81,7 @@ T StrTrim(const T& str) { void AlertIfPossible(CJS_EventContext* pContext, const wchar_t* swMsg) { CPDFSDK_FormFillEnvironment* pFormFillEnv = pContext->GetFormFillEnv(); if (pFormFillEnv) - pFormFillEnv->JS_appAlert(swMsg, nullptr, 0, 3); + pFormFillEnv->JS_appAlert(swMsg, WideString(), 0, 3); } #if _FX_OS_ != _FX_OS_ANDROID_ -- cgit v1.2.3