diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-02 16:44:02 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-02 16:44:02 +0000 |
commit | e353d72449a9298410dc479bf27410d83e56b215 (patch) | |
tree | 814ace49b09aeb0ba440550b1b29fbe4af8b6ea6 /xfa/fwl/cfwl_message.cpp | |
parent | 09646f2d0497eb4cdcf2f3843585faa9264196f4 (diff) | |
download | pdfium-e353d72449a9298410dc479bf27410d83e56b215.tar.xz |
Use UnownedPtr<> in cfwl_event.h and cfwl_message.h
Change-Id: I1981eb23006db203e845e954a7847cfa992d5e03
Reviewed-on: https://pdfium-review.googlesource.com/36710
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_message.cpp')
-rw-r--r-- | xfa/fwl/cfwl_message.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/xfa/fwl/cfwl_message.cpp b/xfa/fwl/cfwl_message.cpp index 258fe62060..7411c24bd7 100644 --- a/xfa/fwl/cfwl_message.cpp +++ b/xfa/fwl/cfwl_message.cpp @@ -6,18 +6,19 @@ #include "xfa/fwl/cfwl_message.h" -CFWL_Message::CFWL_Message(CFWL_Message::Type type) - : CFWL_Message(type, nullptr, nullptr) {} +CFWL_Message::CFWL_Message(CFWL_Message::Type type) : m_type(type) {} CFWL_Message::CFWL_Message(Type type, CFWL_Widget* pSrcTarget) - : CFWL_Message(type, pSrcTarget, nullptr) {} + : m_type(type), m_pSrcTarget(pSrcTarget) {} CFWL_Message::CFWL_Message(Type type, CFWL_Widget* pSrcTarget, CFWL_Widget* pDstTarget) - : m_pSrcTarget(pSrcTarget), m_pDstTarget(pDstTarget), m_type(type) {} + : m_type(type), m_pSrcTarget(pSrcTarget), m_pDstTarget(pDstTarget) {} -CFWL_Message::~CFWL_Message() {} +CFWL_Message::CFWL_Message(const CFWL_Message& that) = default; + +CFWL_Message::~CFWL_Message() = default; std::unique_ptr<CFWL_Message> CFWL_Message::Clone() { return nullptr; |