diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-29 21:54:09 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-29 21:54:09 +0000 |
commit | 0894dc84013cd6a814136ccd40f585fc2eb895f3 (patch) | |
tree | 94c24550d43acc7f5f83e135a0a29ded680e7177 /xfa/fxfa/cxfa_eventparam.h | |
parent | 81fcde731fe44ef5a11748536a2d6404906c80ff (diff) | |
download | pdfium-0894dc84013cd6a814136ccd40f585fc2eb895f3.tar.xz |
Use UnownedPtr to CXFA_Node from outside the treechromium/3477
Comment raw pointers subject to nondeterministic tree destruction
order as such to avoid re-attempting to convert to the unowned
mechanism.
Change-Id: Ia9fe3c8a2729dc1e2b1de4a8c62ae3d2c3d7ec0a
Reviewed-on: https://pdfium-review.googlesource.com/36635
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_eventparam.h')
-rw-r--r-- | xfa/fxfa/cxfa_eventparam.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_eventparam.h b/xfa/fxfa/cxfa_eventparam.h index 3fc5780008..b882d4fa75 100644 --- a/xfa/fxfa/cxfa_eventparam.h +++ b/xfa/fxfa/cxfa_eventparam.h @@ -7,6 +7,7 @@ #ifndef XFA_FXFA_CXFA_EVENTPARAM_H_ #define XFA_FXFA_CXFA_EVENTPARAM_H_ +#include "core/fxcrt/unowned_ptr.h" #include "xfa/fxfa/fxfa_basic.h" class CXFA_Node; @@ -52,8 +53,9 @@ class CXFA_EventParam { CXFA_EventParam(const CXFA_EventParam& other); void Reset(); + WideString GetNewText() const; - CXFA_Node* m_pTarget; + UnownedPtr<CXFA_Node> m_pTarget; XFA_EVENTTYPE m_eType; WideString m_wsResult; bool m_bCancelAction; @@ -72,8 +74,6 @@ class CXFA_EventParam { WideString m_wsSoapFaultCode; WideString m_wsSoapFaultString; bool m_bIsFormReady; - - WideString GetNewText() const; }; #endif // XFA_FXFA_CXFA_EVENTPARAM_H_ |