summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/global.h
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-11 15:18:40 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-11 15:18:40 -0700
commit24a48881c5407651a58cfd6547ac9b6a9823a63e (patch)
tree845e370897a8479fe83b99d56352965c562da717 /fpdfsdk/javascript/global.h
parent1fdde02d90963f774e7d1b6b0353d23aefe0a357 (diff)
downloadpdfium-24a48881c5407651a58cfd6547ac9b6a9823a63e.tar.xz
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
Diffstat (limited to 'fpdfsdk/javascript/global.h')
-rw-r--r--fpdfsdk/javascript/global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/global.h b/fpdfsdk/javascript/global.h
index 335b540271..02c51d98a9 100644
--- a/fpdfsdk/javascript/global.h
+++ b/fpdfsdk/javascript/global.h
@@ -59,7 +59,7 @@ class JSGlobalAlternate : public CJS_EmbedObj {
void UpdateGlobalPersistentVariables();
void CommitGlobalPersisitentVariables(IJS_Context* cc);
void DestroyGlobalPersisitentVariables();
- FX_BOOL SetGlobalVariables(const FX_CHAR* propname,
+ FX_BOOL SetGlobalVariables(const CFX_ByteString& propname,
int nType,
double dData,
bool bData,