summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/global.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-04-18 11:10:39 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-18 18:54:11 +0000
commita77572303624a9ba9877f432bcb6ee2a16b9b34e (patch)
treed39a398193a7a9e95c9a6bea6981441841428fcc /fpdfsdk/javascript/global.h
parentecd36468b5639873295859f29b185c517476cb45 (diff)
downloadpdfium-a77572303624a9ba9877f432bcb6ee2a16b9b34e.tar.xz
Use unique_ptr in JSGlobalAlternate::m_MapGlobal
Change-Id: Iffc3b8654e8c780260f7b58f04b57ae147fce379 Reviewed-on: https://pdfium-review.googlesource.com/4252 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/global.h')
-rw-r--r--fpdfsdk/javascript/global.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/global.h b/fpdfsdk/javascript/global.h
index 7c002488d2..364313c972 100644
--- a/fpdfsdk/javascript/global.h
+++ b/fpdfsdk/javascript/global.h
@@ -8,6 +8,7 @@
#define FPDFSDK_JAVASCRIPT_GLOBAL_H_
#include <map>
+#include <memory>
#include <vector>
#include "fpdfsdk/javascript/JS_Define.h"
@@ -65,7 +66,7 @@ class JSGlobalAlternate : public CJS_EmbedObj {
CJS_GlobalVariableArray& array);
void PutObjectProperty(v8::Local<v8::Object> obj, CJS_KeyValue* pData);
- std::map<CFX_ByteString, JSGlobalData*> m_mapGlobal;
+ std::map<CFX_ByteString, std::unique_ptr<JSGlobalData>> m_MapGlobal;
CFX_WideString m_sFilePath;
CJS_GlobalData* m_pGlobalData;
CPDFSDK_FormFillEnvironment::ObservedPtr m_pFormFillEnv;