diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-04-18 11:45:36 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-18 19:19:22 +0000 |
commit | 1d52d1e5fb0b14782dd6b97eeee8c90106839452 (patch) | |
tree | 66f794d6559c0bd2ddd4dab2272ceabf01426fdc /xfa/fwl/cfwl_eventtarget.h | |
parent | a77572303624a9ba9877f432bcb6ee2a16b9b34e (diff) | |
download | pdfium-1d52d1e5fb0b14782dd6b97eeee8c90106839452.tar.xz |
Use unique_ptr in CFWL_NoteDriver::m_eventTargets map
Invert CFWL_EventTarget::m_bInvalid for the sake of
positive logic.
Change-Id: I9ccc512ab2ff553e1033698f36bf3a297c4ee7c9
Reviewed-on: https://pdfium-review.googlesource.com/4251
Commit-Queue: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_eventtarget.h')
-rw-r--r-- | xfa/fwl/cfwl_eventtarget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fwl/cfwl_eventtarget.h b/xfa/fwl/cfwl_eventtarget.h index 1bca97232c..36d301df27 100644 --- a/xfa/fwl/cfwl_eventtarget.h +++ b/xfa/fwl/cfwl_eventtarget.h @@ -23,13 +23,13 @@ class CFWL_EventTarget { void SetEventSource(CFWL_Widget* pSource); bool ProcessEvent(CFWL_Event* pEvent); - bool IsInvalid() const { return m_bInvalid; } - void FlagInvalid() { m_bInvalid = true; } + bool IsValid() const { return m_bValid; } + void FlagInvalid() { m_bValid = false; } private: std::set<CFWL_Widget*> m_widgets; CFWL_Widget* m_pListener; - bool m_bInvalid; + bool m_bValid; }; #endif // XFA_FWL_CFWL_EVENTTARGET_H_ |