summaryrefslogtreecommitdiff
path: root/fxjs/cjs_field.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-26 15:11:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-26 15:11:28 +0000
commit2cbae7328b4eb31a78db5babc4d5995971de308f (patch)
treecae010d322b164b0a4042275eac815e52e30aa47 /fxjs/cjs_field.h
parent75ee53784b5e51583c6c994d6eeadb7d3ce4a1b9 (diff)
downloadpdfium-2cbae7328b4eb31a78db5babc4d5995971de308f.tar.xz
Use ObservedPtr for CJS_Field::m_pJSField
Bug: 856354 Change-Id: Ic0ac4d189dff6f4688a6c5feb745fe8c5a5ed4bb Reviewed-on: https://pdfium-review.googlesource.com/36150 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjs_field.h')
-rw-r--r--fxjs/cjs_field.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_field.h b/fxjs/cjs_field.h
index 0f089d0f13..52ddbf70d1 100644
--- a/fxjs/cjs_field.h
+++ b/fxjs/cjs_field.h
@@ -10,11 +10,11 @@
#include <string>
#include <vector>
+#include "fxjs/cjs_document.h"
#include "fxjs/js_define.h"
class CPDF_FormControl;
class CPDFSDK_Widget;
-class CJS_Document;
struct CJS_DelayData;
enum FIELD_PROP {
@@ -418,7 +418,7 @@ class CJS_Field : public CJS_Object {
void DoDelay();
- CJS_Document* m_pJSDoc = nullptr;
+ CJS_Document::ObservedPtr m_pJSDoc;
CPDFSDK_FormFillEnvironment::ObservedPtr m_pFormFillEnv;
WideString m_FieldName;
int m_nFormControlIndex = -1;