diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-01 16:41:23 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-01 16:41:23 +0000 |
commit | 3018c1c7323a1aa9fd89c7de5420ed925b5b6611 (patch) | |
tree | 23fdf52f752690c9012c8781e3a3fd0dc0645238 /xfa/fxfa/cxfa_ffapp.h | |
parent | 180656569acbb93fd1ba4ff9b9264e4b41ca17b2 (diff) | |
download | pdfium-3018c1c7323a1aa9fd89c7de5420ed925b5b6611.tar.xz |
Return unique_ptr from CPDFXFA_Context::GetTimerMgr()
Proves ownership by avoiding a std::unique_ptr::reset() call.
Change-Id: Ia6e11920d84dda49699736ef3189e58d240d409e
Reviewed-on: https://pdfium-review.googlesource.com/33230
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffapp.h')
-rw-r--r-- | xfa/fxfa/cxfa_ffapp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffapp.h b/xfa/fxfa/cxfa_ffapp.h index c43cb3e6b2..acc3bf0783 100644 --- a/xfa/fxfa/cxfa_ffapp.h +++ b/xfa/fxfa/cxfa_ffapp.h @@ -44,8 +44,8 @@ class CXFA_FFApp { IXFA_AppProvider* GetAppProvider() const { return m_pProvider.Get(); } const CFWL_App* GetFWLApp() const { return m_pFWLApp.get(); } - IFWL_AdapterTimerMgr* GetTimerMgr() const; CXFA_FontMgr* GetXFAFontMgr() { return &m_pFontMgr; } + std::unique_ptr<IFWL_AdapterTimerMgr> GetTimerMgr() const; void ClearEventTargets(); |