Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: xfa/fwl/core/fwl_appimp.cpp

Issue 2031873003: Get rid of NULLs in xfa/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@nullptr_fpdfsdk
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/cfwl_widgetmgr.cpp ('k') | xfa/fwl/core/fwl_formimp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fwl/core/fwl_appimp.h" 7 #include "xfa/fwl/core/fwl_appimp.h"
8 8
9 #include "xfa/fwl/core/cfwl_widgetmgr.h" 9 #include "xfa/fwl/core/cfwl_widgetmgr.h"
10 #include "xfa/fwl/core/fwl_noteimp.h" 10 #include "xfa/fwl/core/fwl_noteimp.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 } 93 }
94 94
95 IFWL_ThemeProvider* CFWL_AppImp::GetThemeProvider() const { 95 IFWL_ThemeProvider* CFWL_AppImp::GetThemeProvider() const {
96 return m_pThemeProvider; 96 return m_pThemeProvider;
97 } 97 }
98 98
99 CXFA_FFApp* FWL_GetAdapterNative() { 99 CXFA_FFApp* FWL_GetAdapterNative() {
100 IFWL_App* pApp = FWL_GetApp(); 100 IFWL_App* pApp = FWL_GetApp();
101 if (!pApp) 101 if (!pApp)
102 return NULL; 102 return nullptr;
103 return pApp->GetAdapterNative(); 103 return pApp->GetAdapterNative();
104 } 104 }
105 105
106 static IFWL_App* g_theApp = nullptr; 106 static IFWL_App* g_theApp = nullptr;
107 IFWL_App* FWL_GetApp() { 107 IFWL_App* FWL_GetApp() {
108 return g_theApp; 108 return g_theApp;
109 } 109 }
110 110
111 void FWL_SetApp(IFWL_App* pApp) { 111 void FWL_SetApp(IFWL_App* pApp) {
112 g_theApp = pApp; 112 g_theApp = pApp;
113 } 113 }
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_widgetmgr.cpp ('k') | xfa/fwl/core/fwl_formimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698