diff options
Diffstat (limited to 'xfa/fxfa')
-rw-r--r-- | xfa/fxfa/cxfa_ffapp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_ffapp.cpp b/xfa/fxfa/cxfa_ffapp.cpp index 67a7270824..a2b0c005f0 100644 --- a/xfa/fxfa/cxfa_ffapp.cpp +++ b/xfa/fxfa/cxfa_ffapp.cpp @@ -53,9 +53,9 @@ CFGAS_FontMgr* CXFA_FFApp::GetFDEFontMgr() { CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() { if (!m_pFWLTheme) { - m_pFWLTheme = pdfium::MakeUnique<CXFA_FWLTheme>(this); - if (!m_pFWLTheme->LoadCalendarFont()) - m_pFWLTheme = nullptr; + auto fwl_theme = pdfium::MakeUnique<CXFA_FWLTheme>(this); + if (fwl_theme->LoadCalendarFont()) + m_pFWLTheme = std::move(fwl_theme); } return m_pFWLTheme.get(); } |