mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefsimple: Convert NULL to nullptr (see issue #2861)
This commit is contained in:
@@ -32,7 +32,7 @@ class SimpleWindowDelegate : public CefWindowDelegate {
|
||||
}
|
||||
|
||||
void OnWindowDestroyed(CefRefPtr<CefWindow> window) OVERRIDE {
|
||||
browser_view_ = NULL;
|
||||
browser_view_ = nullptr;
|
||||
}
|
||||
|
||||
bool CanClose(CefRefPtr<CefWindow> window) OVERRIDE {
|
||||
@@ -91,7 +91,7 @@ void SimpleApp::OnContextInitialized() {
|
||||
if (use_views) {
|
||||
// Create the BrowserView.
|
||||
CefRefPtr<CefBrowserView> browser_view = CefBrowserView::CreateBrowserView(
|
||||
handler, url, browser_settings, NULL, NULL, NULL);
|
||||
handler, url, browser_settings, nullptr, nullptr, nullptr);
|
||||
|
||||
// Create the Window. It will show itself after creation.
|
||||
CefWindow::CreateTopLevelWindow(new SimpleWindowDelegate(browser_view));
|
||||
@@ -107,6 +107,6 @@ void SimpleApp::OnContextInitialized() {
|
||||
|
||||
// Create the first browser window.
|
||||
CefBrowserHost::CreateBrowser(window_info, handler, url, browser_settings,
|
||||
NULL, NULL);
|
||||
nullptr, nullptr);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user