From 24a48881c5407651a58cfd6547ac9b6a9823a63e Mon Sep 17 00:00:00 2001 From: tsepez Date: Mon, 11 Apr 2016 15:18:40 -0700 Subject: Pass CFX_ByteStrings rather than raw ptrs to JS_GlobalData. Helps to avoid re-allocating strings when the caller already has one allocated. Review URL: https://codereview.chromium.org/1876203002 --- fpdfsdk/javascript/global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk/javascript/global.cpp') diff --git a/fpdfsdk/javascript/global.cpp b/fpdfsdk/javascript/global.cpp index fe974c7af2..d843b60105 100644 --- a/fpdfsdk/javascript/global.cpp +++ b/fpdfsdk/javascript/global.cpp @@ -407,7 +407,7 @@ void JSGlobalAlternate::DestroyGlobalPersisitentVariables() { m_mapGlobal.clear(); } -FX_BOOL JSGlobalAlternate::SetGlobalVariables(const FX_CHAR* propname, +FX_BOOL JSGlobalAlternate::SetGlobalVariables(const CFX_ByteString& propname, int nType, double dData, bool bData, -- cgit v1.2.3