summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl/cpwl_wnd.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-26 22:08:43 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-26 22:08:43 +0000
commit9590dee526c514d87dc1f47569d1136ffcf539ad (patch)
treeeaea0d3d96ee9248b1cb0dc34fc2950192b7f9ef /fpdfsdk/pwl/cpwl_wnd.h
parente027c9765c1aa5ea2a4293fc6ea29a96e3fc2c73 (diff)
downloadpdfium-9590dee526c514d87dc1f47569d1136ffcf539ad.tar.xz
Pass unique_ptr to CPWL_Wnd::AddChild().
But stop short of updating the underlying data structures. Change-Id: I7d8edc74f71725005b81359484d30caddbe958d7 Reviewed-on: https://pdfium-review.googlesource.com/c/44693 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_wnd.h')
-rw-r--r--fpdfsdk/pwl/cpwl_wnd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/pwl/cpwl_wnd.h b/fpdfsdk/pwl/cpwl_wnd.h
index 3a4c9a5914..7f6bfec813 100644
--- a/fpdfsdk/pwl/cpwl_wnd.h
+++ b/fpdfsdk/pwl/cpwl_wnd.h
@@ -176,7 +176,7 @@ class CPWL_Wnd : public CPWL_TimerHandler, public Observable<CPWL_Wnd> {
virtual CFX_FloatRect GetFocusRect() const;
virtual CFX_FloatRect GetClientRect() const;
- void AddChild(CPWL_Wnd* pWnd);
+ void AddChild(std::unique_ptr<CPWL_Wnd> pWnd);
void RemoveChild(CPWL_Wnd* pWnd);
void Realize(const CreateParams& cp);
void Destroy();