diff --git a/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodHandler.cpp b/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodHandler.cpp index 7135cd5bf..71628d738 100644 --- a/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodHandler.cpp +++ b/CefSharp.BrowserSubprocess.Core/Async/JavascriptAsyncMethodHandler.cpp @@ -38,9 +38,9 @@ namespace CefSharp //when refreshing the browser this is sometimes null, in this case return true and log message //https://github.com/cefsharp/CefSharp/pull/2446 - if (promiseData == NULL) + if (promiseData == nullptr) { - LOG(WARNING) << "JavascriptAsyncMethodHandler::Execute promiseData returned NULL"; + LOG(WARNING) << "JavascriptAsyncMethodHandler::Execute promiseData returned nullptr"; return true; } diff --git a/CefSharp.BrowserSubprocess.Core/BindObjectAsyncHandler.h b/CefSharp.BrowserSubprocess.Core/BindObjectAsyncHandler.h index f9f5c5812..319d98fca 100644 --- a/CefSharp.BrowserSubprocess.Core/BindObjectAsyncHandler.h +++ b/CefSharp.BrowserSubprocess.Core/BindObjectAsyncHandler.h @@ -197,9 +197,9 @@ namespace CefSharp //when refreshing the browser this is sometimes null, in this case return true and log message //https://github.com/cefsharp/CefSharp/pull/2446 - if (promiseData == NULL) + if (promiseData == nullptr) { - LOG(WARNING) << "BindObjectAsyncHandler::Execute promiseData returned NULL"; + LOG(WARNING) << "BindObjectAsyncHandler::Execute promiseData returned nullptr"; return true; } diff --git a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp index cf8d702ff..45d024b60 100644 --- a/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp +++ b/CefSharp.BrowserSubprocess.Core/CefAppUnmanagedWrapper.cpp @@ -156,7 +156,7 @@ namespace CefSharp if (createCefSharpObj) { - auto cefSharpObj = CefV8Value::CreateObject(NULL, NULL); + auto cefSharpObj = CefV8Value::CreateObject(nullptr, nullptr); cefSharpObj->SetValue(kBindObjectAsync, bindObjAsyncFunction, CefV8Value::PropertyAttribute::V8_PROPERTY_ATTRIBUTE_NONE); cefSharpObj->SetValue(kDeleteBoundObject, unBindObjFunction, CefV8Value::PropertyAttribute::V8_PROPERTY_ATTRIBUTE_NONE); cefSharpObj->SetValue(kRemoveObjectFromCache, removeObjectFromCacheFunction, CefV8Value::PropertyAttribute::V8_PROPERTY_ATTRIBUTE_NONE); @@ -170,7 +170,7 @@ namespace CefSharp if (createCefSharpObjCamelCase) { - auto cefSharpObjCamelCase = CefV8Value::CreateObject(NULL, NULL); + auto cefSharpObjCamelCase = CefV8Value::CreateObject(nullptr, nullptr); cefSharpObjCamelCase->SetValue(kBindObjectAsyncCamelCase, bindObjAsyncFunction, CefV8Value::PropertyAttribute::V8_PROPERTY_ATTRIBUTE_NONE); cefSharpObjCamelCase->SetValue(kDeleteBoundObjectCamelCase, unBindObjFunction, CefV8Value::PropertyAttribute::V8_PROPERTY_ATTRIBUTE_NONE); cefSharpObjCamelCase->SetValue(kRemoveObjectFromCacheCamelCase, removeObjectFromCacheFunction, CefV8Value::PropertyAttribute::V8_PROPERTY_ATTRIBUTE_NONE); @@ -613,7 +613,7 @@ namespace CefSharp if (_registerBoundObjectRegistry->TryGetAndRemoveMethodCallback(callbackId, callback)) { //Response object has no Accessor or Interceptor - auto response = CefV8Value::CreateObject(NULL, NULL); + auto response = CefV8Value::CreateObject(nullptr, nullptr); response->SetValue("Count", CefV8Value::CreateInt(javascriptObjects->Count), CefV8Value::PropertyAttribute::V8_PROPERTY_ATTRIBUTE_READONLY); diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptMethodHandler.cpp b/CefSharp.BrowserSubprocess.Core/JavascriptMethodHandler.cpp index 1c8954219..43b6de9d3 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptMethodHandler.cpp +++ b/CefSharp.BrowserSubprocess.Core/JavascriptMethodHandler.cpp @@ -50,7 +50,7 @@ namespace CefSharp if (type == JavascriptObject::typeid) { JavascriptObject^ javascriptObject = (JavascriptObject^)obj; - CefRefPtr cefObject = CefV8Value::CreateObject(NULL, NULL); + CefRefPtr cefObject = CefV8Value::CreateObject(nullptr, nullptr); for (int i = 0; i < javascriptObject->Properties->Count; i++) { diff --git a/CefSharp.BrowserSubprocess.Core/JavascriptObjectWrapper.cpp b/CefSharp.BrowserSubprocess.Core/JavascriptObjectWrapper.cpp index cef9056aa..afb2926dd 100644 --- a/CefSharp.BrowserSubprocess.Core/JavascriptObjectWrapper.cpp +++ b/CefSharp.BrowserSubprocess.Core/JavascriptObjectWrapper.cpp @@ -23,7 +23,7 @@ namespace CefSharp ); //V8Value that represents this javascript object - only one per complex type - auto javascriptObject = CefV8Value::CreateObject(_jsPropertyHandler.get(), NULL); + auto javascriptObject = CefV8Value::CreateObject(_jsPropertyHandler.get(), nullptr); auto objectName = StringUtils::ToNative(object->JavascriptName); v8Value->SetValue(objectName, javascriptObject, V8_PROPERTY_ATTRIBUTE_NONE); diff --git a/CefSharp.BrowserSubprocess.Core/SubProcess.h b/CefSharp.BrowserSubprocess.Core/SubProcess.h index 39b165451..01416c184 100644 --- a/CefSharp.BrowserSubprocess.Core/SubProcess.h +++ b/CefSharp.BrowserSubprocess.Core/SubProcess.h @@ -54,7 +54,7 @@ namespace CefSharp CefMainArgs cefMainArgs((HINSTANCE)hInstance.ToPointer()); - return CefExecuteProcess(cefMainArgs, (CefApp*)_cefApp.get(), NULL); + return CefExecuteProcess(cefMainArgs, (CefApp*)_cefApp.get(), nullptr); } virtual void OnBrowserCreated(CefBrowserWrapper^ cefBrowserWrapper) @@ -82,7 +82,7 @@ namespace CefSharp CefRefPtr app = new SubProcessApp(schemes); - return CefExecuteProcess(cefMainArgs, app, NULL); + return CefExecuteProcess(cefMainArgs, app, nullptr); } }; } diff --git a/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.h b/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.h index d9cb0688a..bae52645a 100644 --- a/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.h +++ b/CefSharp.BrowserSubprocess.Core/Wrapper/Frame.h @@ -39,7 +39,7 @@ namespace CefSharp !Frame() { - _frame = NULL; + _frame = nullptr; } ~Frame() diff --git a/CefSharp.BrowserSubprocess.Core/Wrapper/V8Context.h b/CefSharp.BrowserSubprocess.Core/Wrapper/V8Context.h index 134a6f298..d9fcf65f0 100644 --- a/CefSharp.BrowserSubprocess.Core/Wrapper/V8Context.h +++ b/CefSharp.BrowserSubprocess.Core/Wrapper/V8Context.h @@ -28,7 +28,7 @@ namespace CefSharp !V8Context() { - _context = NULL; + _context = nullptr; } ~V8Context() diff --git a/CefSharp.Core.Runtime/BrowserSettings.h b/CefSharp.Core.Runtime/BrowserSettings.h index a99962f9a..e27120bfd 100644 --- a/CefSharp.Core.Runtime/BrowserSettings.h +++ b/CefSharp.Core.Runtime/BrowserSettings.h @@ -61,7 +61,7 @@ namespace CefSharp delete _browserSettings; } - _browserSettings = NULL; + _browserSettings = nullptr; _isDisposed = true; } diff --git a/CefSharp.Core.Runtime/Cef.h b/CefSharp.Core.Runtime/Cef.h index 5984800bd..909b78a2f 100644 --- a/CefSharp.Core.Runtime/Cef.h +++ b/CefSharp.Core.Runtime/Cef.h @@ -257,7 +257,7 @@ namespace CefSharp cefApp)); CefMainArgs main_args; - auto success = CefInitialize(main_args, *(cefSettings->_cefSettings), app.get(), NULL); + auto success = CefInitialize(main_args, *(cefSettings->_cefSettings), app.get(), nullptr); _initialized = success; _multiThreadedMessageLoop = cefSettings->MultiThreadedMessageLoop; @@ -325,7 +325,7 @@ namespace CefSharp //TODO: Look at ways to expose an instance of CefApp //CefRefPtr app(new CefSharpApp(nullptr, nullptr)); - return CefExecuteProcess(cefMainArgs, NULL, NULL); + return CefExecuteProcess(cefMainArgs, nullptr, nullptr); } /// Add an entry to the cross-origin whitelist. @@ -448,7 +448,7 @@ namespace CefSharp /// A the global cookie manager or null if the RequestContext has not yet been initialized. static ICookieManager^ GetGlobalCookieManager(ICompletionCallback^ callback) { - CefRefPtr c = callback == nullptr ? NULL : new CefCompletionCallbackAdapter(callback); + CefRefPtr c = callback == nullptr ? nullptr : new CefCompletionCallbackAdapter(callback); auto cookieManager = CefCookieManager::GetGlobalManager(c); if (cookieManager.get()) @@ -806,7 +806,7 @@ namespace CefSharp /// will be executed asynchronously once registration is complete static void RegisterWidevineCdm(String^ path, [Optional] IRegisterCdmCallback^ callback) { - CefRefPtr adapter = NULL; + CefRefPtr adapter = nullptr; if (callback != nullptr) { diff --git a/CefSharp.Core.Runtime/CookieManager.cpp b/CefSharp.Core.Runtime/CookieManager.cpp index 694c5434e..27f49541e 100644 --- a/CefSharp.Core.Runtime/CookieManager.cpp +++ b/CefSharp.Core.Runtime/CookieManager.cpp @@ -26,7 +26,7 @@ namespace CefSharp { ThrowIfDisposed(); - CefRefPtr wrapper = callback == nullptr ? NULL : new CefDeleteCookiesCallbackAdapter(callback); + CefRefPtr wrapper = callback == nullptr ? nullptr : new CefDeleteCookiesCallbackAdapter(callback); return _cookieManager->DeleteCookies(StringUtils::ToNative(url), StringUtils::ToNative(name), wrapper); } @@ -35,7 +35,7 @@ namespace CefSharp { ThrowIfDisposed(); - CefRefPtr wrapper = callback == nullptr ? NULL : new CefSetCookieCallbackAdapter(callback); + CefRefPtr wrapper = callback == nullptr ? nullptr : new CefSetCookieCallbackAdapter(callback); CefCookie c; StringUtils::AssignNativeFromClr(c.name, cookie->Name); @@ -81,7 +81,7 @@ namespace CefSharp { ThrowIfDisposed(); - CefRefPtr wrapper = callback == nullptr ? NULL : new CefCompletionCallbackAdapter(callback); + CefRefPtr wrapper = callback == nullptr ? nullptr : new CefCompletionCallbackAdapter(callback); return _cookieManager->FlushStore(wrapper); } diff --git a/CefSharp.Core.Runtime/CookieManager.h b/CefSharp.Core.Runtime/CookieManager.h index 7b9c5676d..fc3d85611 100644 --- a/CefSharp.Core.Runtime/CookieManager.h +++ b/CefSharp.Core.Runtime/CookieManager.h @@ -31,7 +31,7 @@ namespace CefSharp { if (this == nullptr) { - return NULL; + return nullptr; } return _cookieManager.get(); } diff --git a/CefSharp.Core.Runtime/DragData.h b/CefSharp.Core.Runtime/DragData.h index 12529dca2..39f201dd3 100644 --- a/CefSharp.Core.Runtime/DragData.h +++ b/CefSharp.Core.Runtime/DragData.h @@ -52,7 +52,7 @@ namespace CefSharp { if (this == nullptr) { - return NULL; + return nullptr; } return _wrappedDragData.get(); } @@ -211,7 +211,7 @@ namespace CefSharp { if (stream == nullptr) { - return (Int64)_wrappedDragData->GetFileContents(NULL); + return (Int64)_wrappedDragData->GetFileContents(nullptr); } auto writeHandler = new CefWriteHandlerWrapper(stream); diff --git a/CefSharp.Core.Runtime/Internals/CefAuthCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefAuthCallbackWrapper.h index d310ed72e..65b5aa2a7 100644 --- a/CefSharp.Core.Runtime/Internals/CefAuthCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefAuthCallbackWrapper.h @@ -27,7 +27,7 @@ namespace CefSharp !CefAuthCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefAuthCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefBeforeDownloadCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefBeforeDownloadCallbackWrapper.h index 0b0fbd871..53e490aa5 100644 --- a/CefSharp.Core.Runtime/Internals/CefBeforeDownloadCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefBeforeDownloadCallbackWrapper.h @@ -27,7 +27,7 @@ namespace CefSharp !CefBeforeDownloadCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefBeforeDownloadCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp index cb457378c..7be4b2ae6 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp +++ b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp @@ -225,7 +225,7 @@ int CefBrowserHostWrapper::ExecuteDevToolsMethod(int messageId, String^ method, if (paramaters == nullptr) { - return _browserHost->ExecuteDevToolsMethod(messageId, StringUtils::ToNative(method), NULL); + return _browserHost->ExecuteDevToolsMethod(messageId, StringUtils::ToNative(method), nullptr); } auto val = TypeConversion::ToNative(paramaters); @@ -248,7 +248,7 @@ int CefBrowserHostWrapper::ExecuteDevToolsMethod(int messageId, String^ method, if (String::IsNullOrEmpty(paramsAsJson)) { - return _browserHost->ExecuteDevToolsMethod(messageId, StringUtils::ToNative(method), NULL); + return _browserHost->ExecuteDevToolsMethod(messageId, StringUtils::ToNative(method), nullptr); } auto val = CefParseJSON(StringUtils::ToNative(paramsAsJson), cef_json_parser_options_t::JSON_PARSER_RFC); diff --git a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.h b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.h index 3d6915959..b0a205da9 100644 --- a/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.h @@ -31,7 +31,7 @@ namespace CefSharp !CefBrowserHostWrapper() { - _browserHost = NULL; + _browserHost = nullptr; } ~CefBrowserHostWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefCallbackWrapper.h index b69a00cd2..7587f82d3 100644 --- a/CefSharp.Core.Runtime/Internals/CefCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefCallbackWrapper.h @@ -27,7 +27,7 @@ namespace CefSharp !CefCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefCertificateCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefCertificateCallbackWrapper.h index 812c8fa14..ef8940f1b 100644 --- a/CefSharp.Core.Runtime/Internals/CefCertificateCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefCertificateCallbackWrapper.h @@ -30,7 +30,7 @@ namespace CefSharp !CefCertificateCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefCertificateCallbackWrapper() @@ -46,7 +46,7 @@ namespace CefSharp if (cert == nullptr) { - _callback->Select(NULL); + _callback->Select(nullptr); } else { diff --git a/CefSharp.Core.Runtime/Internals/CefContextMenuParamsWrapper.h b/CefSharp.Core.Runtime/Internals/CefContextMenuParamsWrapper.h index 48f85cb4e..0ac01ee11 100644 --- a/CefSharp.Core.Runtime/Internals/CefContextMenuParamsWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefContextMenuParamsWrapper.h @@ -27,7 +27,7 @@ namespace CefSharp !CefContextMenuParamsWrapper() { - _wrappedInfo = NULL; + _wrappedInfo = nullptr; } ~CefContextMenuParamsWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefDownloadItemCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefDownloadItemCallbackWrapper.h index 6b0e111ae..6a6e594e1 100644 --- a/CefSharp.Core.Runtime/Internals/CefDownloadItemCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefDownloadItemCallbackWrapper.h @@ -27,7 +27,7 @@ namespace CefSharp !CefDownloadItemCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefDownloadItemCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefExtensionHandlerAdapter.h b/CefSharp.Core.Runtime/Internals/CefExtensionHandlerAdapter.h index 3dd1e3545..c352ae6db 100644 --- a/CefSharp.Core.Runtime/Internals/CefExtensionHandlerAdapter.h +++ b/CefSharp.Core.Runtime/Internals/CefExtensionHandlerAdapter.h @@ -156,7 +156,7 @@ namespace CefSharp if (activeBrowser == nullptr) { - return NULL; + return nullptr; } //TODO: CLean this up diff --git a/CefSharp.Core.Runtime/Internals/CefFileDialogCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefFileDialogCallbackWrapper.h index e94534a58..9b21cebd2 100644 --- a/CefSharp.Core.Runtime/Internals/CefFileDialogCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefFileDialogCallbackWrapper.h @@ -26,7 +26,7 @@ namespace CefSharp !CefFileDialogCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefFileDialogCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefFrameWrapper.h b/CefSharp.Core.Runtime/Internals/CefFrameWrapper.h index 7c1604c16..d588b02df 100644 --- a/CefSharp.Core.Runtime/Internals/CefFrameWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefFrameWrapper.h @@ -40,7 +40,7 @@ namespace CefSharp !CefFrameWrapper() { - _frame = NULL; + _frame = nullptr; } ~CefFrameWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefGetExtensionResourceCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefGetExtensionResourceCallbackWrapper.h index 6bb083c42..600d6d103 100644 --- a/CefSharp.Core.Runtime/Internals/CefGetExtensionResourceCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefGetExtensionResourceCallbackWrapper.h @@ -28,7 +28,7 @@ namespace CefSharp !CefGetExtensionResourceCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefGetExtensionResourceCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefImageWrapper.h b/CefSharp.Core.Runtime/Internals/CefImageWrapper.h index b8f6f118b..6e69cc2a3 100644 --- a/CefSharp.Core.Runtime/Internals/CefImageWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefImageWrapper.h @@ -28,7 +28,7 @@ namespace CefSharp !CefImageWrapper() { - _image = NULL; + _image = nullptr; } ~CefImageWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefJSDialogCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefJSDialogCallbackWrapper.h index 4867fde6e..6e541974e 100644 --- a/CefSharp.Core.Runtime/Internals/CefJSDialogCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefJSDialogCallbackWrapper.h @@ -23,7 +23,7 @@ namespace CefSharp !CefJSDialogCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefJSDialogCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefMenuModelWrapper.h b/CefSharp.Core.Runtime/Internals/CefMenuModelWrapper.h index a4b0b4df1..72c4c1911 100644 --- a/CefSharp.Core.Runtime/Internals/CefMenuModelWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefMenuModelWrapper.h @@ -28,7 +28,7 @@ namespace CefSharp !CefMenuModelWrapper() { - _menu = NULL; + _menu = nullptr; } ~CefMenuModelWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefRegistrationWrapper.h b/CefSharp.Core.Runtime/Internals/CefRegistrationWrapper.h index be34eee6b..b2d0f19e2 100644 --- a/CefSharp.Core.Runtime/Internals/CefRegistrationWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefRegistrationWrapper.h @@ -27,7 +27,7 @@ namespace CefSharp !CefRegistrationWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefRegistrationWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefRequestCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefRequestCallbackWrapper.h index c2f12d0b0..dea887f01 100644 --- a/CefSharp.Core.Runtime/Internals/CefRequestCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefRequestCallbackWrapper.h @@ -34,7 +34,7 @@ namespace CefSharp !CefRequestCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefRequestCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefRequestContextHandlerAdapter.cpp b/CefSharp.Core.Runtime/Internals/CefRequestContextHandlerAdapter.cpp index f60aaf345..d8e1f502f 100644 --- a/CefSharp.Core.Runtime/Internals/CefRequestContextHandlerAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/CefRequestContextHandlerAdapter.cpp @@ -69,7 +69,7 @@ namespace CefSharp if (Object::ReferenceEquals(_requestContextHandler, nullptr)) { - return NULL; + return nullptr; } CefBrowserWrapper browserWrapper(browser); @@ -80,7 +80,7 @@ namespace CefSharp if (Object::ReferenceEquals(handler, nullptr)) { - return NULL; + return nullptr; } //CefRequestContext is not associated with a specific browser diff --git a/CefSharp.Core.Runtime/Internals/CefResourceReadCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefResourceReadCallbackWrapper.h index deb004895..5b1be89f8 100644 --- a/CefSharp.Core.Runtime/Internals/CefResourceReadCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefResourceReadCallbackWrapper.h @@ -29,7 +29,7 @@ namespace CefSharp !CefResourceReadCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefResourceReadCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefResourceRequestHandlerAdapter.h b/CefSharp.Core.Runtime/Internals/CefResourceRequestHandlerAdapter.h index ee1d70bcf..cda97118d 100644 --- a/CefSharp.Core.Runtime/Internals/CefResourceRequestHandlerAdapter.h +++ b/CefSharp.Core.Runtime/Internals/CefResourceRequestHandlerAdapter.h @@ -65,7 +65,7 @@ namespace CefSharp if (accessFilter == nullptr) { - return NULL; + return nullptr; } return new CefCookieAccessFilterAdapter(accessFilter, _browserControl); @@ -113,7 +113,7 @@ namespace CefSharp if (resourceHandler == nullptr) { - return NULL; + return nullptr; } if (resourceHandler->GetType() == FileResourceHandler::typeid) @@ -128,10 +128,10 @@ namespace CefSharp } else { - auto msg = "Unable to load resource CefStreamReader::CreateForFile returned NULL for file:" + fileResourceHandler->FilePath; + auto msg = "Unable to load resource CefStreamReader::CreateForFile returned nullptr for file:" + fileResourceHandler->FilePath; LOG(ERROR) << StringUtils::ToNative(msg).ToString(); - return NULL; + return nullptr; } } else if (resourceHandler->GetType() == ByteArrayResourceHandler::typeid) @@ -212,7 +212,7 @@ namespace CefSharp if (responseFilter == nullptr) { - return NULL; + return nullptr; } return new CefResponseFilterAdapter(responseFilter); diff --git a/CefSharp.Core.Runtime/Internals/CefResourceSkipCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefResourceSkipCallbackWrapper.h index 7cec11e23..ef339cc56 100644 --- a/CefSharp.Core.Runtime/Internals/CefResourceSkipCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefResourceSkipCallbackWrapper.h @@ -29,7 +29,7 @@ namespace CefSharp !CefResourceSkipCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefResourceSkipCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefRunContextMenuCallbackWrapper.h b/CefSharp.Core.Runtime/Internals/CefRunContextMenuCallbackWrapper.h index 701de5bb0..a1ddb19e8 100644 --- a/CefSharp.Core.Runtime/Internals/CefRunContextMenuCallbackWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefRunContextMenuCallbackWrapper.h @@ -27,7 +27,7 @@ namespace CefSharp !CefRunContextMenuCallbackWrapper() { - _callback = NULL; + _callback = nullptr; } ~CefRunContextMenuCallbackWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefSchemeHandlerFactoryAdapter.h b/CefSharp.Core.Runtime/Internals/CefSchemeHandlerFactoryAdapter.h index 01f85d4c5..811b6de1b 100644 --- a/CefSharp.Core.Runtime/Internals/CefSchemeHandlerFactoryAdapter.h +++ b/CefSharp.Core.Runtime/Internals/CefSchemeHandlerFactoryAdapter.h @@ -47,7 +47,7 @@ namespace CefSharp if (handler == nullptr) { - return NULL; + return nullptr; } if (handler->GetType() == FileResourceHandler::typeid) @@ -62,10 +62,10 @@ namespace CefSharp } else { - auto msg = "Unable to load resource CefStreamReader::CreateForFile returned NULL for file:" + resourceHandler->FilePath; + auto msg = "Unable to load resource CefStreamReader::CreateForFile returned nullptr for file:" + resourceHandler->FilePath; LOG(ERROR) << StringUtils::ToNative(msg).ToString(); - return NULL; + return nullptr; } } else if (handler->GetType() == ByteArrayResourceHandler::typeid) diff --git a/CefSharp.Core.Runtime/Internals/CefSchemeRegistrarWrapper.h b/CefSharp.Core.Runtime/Internals/CefSchemeRegistrarWrapper.h index 2db18a130..e1cd3bb84 100644 --- a/CefSharp.Core.Runtime/Internals/CefSchemeRegistrarWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefSchemeRegistrarWrapper.h @@ -29,7 +29,7 @@ namespace CefSharp !CefSchemeRegistrarWrapper() { - _registra = NULL; + _registra = nullptr; } ~CefSchemeRegistrarWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefSslInfoWrapper.h b/CefSharp.Core.Runtime/Internals/CefSslInfoWrapper.h index 71a4c2fbc..58787ea97 100644 --- a/CefSharp.Core.Runtime/Internals/CefSslInfoWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefSslInfoWrapper.h @@ -30,7 +30,7 @@ namespace CefSharp !CefSslInfoWrapper() { - _sslInfo = NULL; + _sslInfo = nullptr; } ~CefSslInfoWrapper() diff --git a/CefSharp.Core.Runtime/Internals/CefValueWrapper.h b/CefSharp.Core.Runtime/Internals/CefValueWrapper.h index 8d977c1c7..3891af325 100644 --- a/CefSharp.Core.Runtime/Internals/CefValueWrapper.h +++ b/CefSharp.Core.Runtime/Internals/CefValueWrapper.h @@ -25,7 +25,7 @@ namespace CefSharp !CefValueWrapper() { - _cefValue = NULL; + _cefValue = nullptr; } ~CefValueWrapper() diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp index d71a3b415..179e09d6e 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.cpp @@ -250,7 +250,7 @@ namespace CefSharp //the handles don't match up (at least in WPF), need to investigate further. else if (_browserHwnd == browser->GetHost()->GetWindowHandle() || _browserControl->HasParent) { - _cefBrowser = NULL; + _cefBrowser = nullptr; } BrowserRefCounter::Instance->Decrement(); @@ -601,7 +601,7 @@ namespace CefSharp //No handler and no factory, we'll just return null if (handler == nullptr && resourceRequestHandlerFactory == nullptr) { - return NULL; + return nullptr; } auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); @@ -630,7 +630,7 @@ namespace CefSharp } } - return NULL; + return nullptr; } bool ClientAdapter::OnCertificateError(CefRefPtr browser, cef_errorcode_t cert_error, const CefString& request_url, CefRefPtr ssl_info, CefRefPtr callback) @@ -644,7 +644,7 @@ namespace CefSharp // If callback is empty the error cannot be recovered from and the request will be canceled automatically. // Still notify the user of the certificate error just don't provide a callback. - auto requestCallback = callback == NULL ? nullptr : gcnew CefRequestCallbackWrapper(callback); + auto requestCallback = callback == nullptr ? nullptr : gcnew CefRequestCallbackWrapper(callback); auto browserWrapper = GetBrowserWrapper(browser->GetIdentifier(), browser->IsPopup()); auto sslInfoWrapper = gcnew CefSslInfoWrapper(ssl_info); diff --git a/CefSharp.Core.Runtime/Internals/ClientAdapter.h b/CefSharp.Core.Runtime/Internals/ClientAdapter.h index f926cc94b..57d055a57 100644 --- a/CefSharp.Core.Runtime/Internals/ClientAdapter.h +++ b/CefSharp.Core.Runtime/Internals/ClientAdapter.h @@ -56,7 +56,7 @@ namespace CefSharp _popupBrowsers(gcnew Dictionary()), _pendingTaskRepository(gcnew PendingTaskRepository()), _browserAdapter(browserAdapter), - _browserHwnd(NULL), + _browserHwnd(nullptr), _disposed(false) { @@ -74,7 +74,7 @@ namespace CefSharp _browser = nullptr; _browserControl = nullptr; _browserHwnd = nullptr; - _cefBrowser = NULL; + _cefBrowser = nullptr; _tooltip = nullptr; _browserAdapter = nullptr; _popupBrowsers = nullptr; diff --git a/CefSharp.Core.Runtime/Internals/MCefRefPtr.h b/CefSharp.Core.Runtime/Internals/MCefRefPtr.h index fab43ab35..2a8998d7e 100644 --- a/CefSharp.Core.Runtime/Internals/MCefRefPtr.h +++ b/CefSharp.Core.Runtime/Internals/MCefRefPtr.h @@ -18,7 +18,7 @@ namespace CefSharp T* _ptr; public: - MCefRefPtr() : _ptr(NULL) {} + MCefRefPtr() : _ptr(nullptr) {} MCefRefPtr(T* p) : _ptr(p) { diff --git a/CefSharp.Core.Runtime/PopupFeatures.h b/CefSharp.Core.Runtime/PopupFeatures.h index 0fc8afada..7cdf83c3c 100644 --- a/CefSharp.Core.Runtime/PopupFeatures.h +++ b/CefSharp.Core.Runtime/PopupFeatures.h @@ -33,7 +33,7 @@ namespace CefSharp public: !PopupFeatures() { - _popupFeatures = NULL; + _popupFeatures = nullptr; } ~PopupFeatures() diff --git a/CefSharp.Core.Runtime/PostData.h b/CefSharp.Core.Runtime/PostData.h index 437450f0a..3bbef8749 100644 --- a/CefSharp.Core.Runtime/PostData.h +++ b/CefSharp.Core.Runtime/PostData.h @@ -81,7 +81,7 @@ namespace CefSharp { if (this == nullptr) { - return NULL; + return nullptr; } return _postData.get(); } diff --git a/CefSharp.Core.Runtime/PostDataElement.h b/CefSharp.Core.Runtime/PostDataElement.h index 575fbe44e..4a7ad7885 100644 --- a/CefSharp.Core.Runtime/PostDataElement.h +++ b/CefSharp.Core.Runtime/PostDataElement.h @@ -43,7 +43,7 @@ namespace CefSharp { if (this == nullptr) { - return NULL; + return nullptr; } return _postDataElement.get(); } diff --git a/CefSharp.Core.Runtime/Request.h b/CefSharp.Core.Runtime/Request.h index a105895cc..1fa2fa1e4 100644 --- a/CefSharp.Core.Runtime/Request.h +++ b/CefSharp.Core.Runtime/Request.h @@ -44,7 +44,7 @@ namespace CefSharp { if (this == nullptr) { - return NULL; + return nullptr; } return _request.get(); } diff --git a/CefSharp.Core.Runtime/RequestContext.cpp b/CefSharp.Core.Runtime/RequestContext.cpp index 90d212dcf..f337651f0 100644 --- a/CefSharp.Core.Runtime/RequestContext.cpp +++ b/CefSharp.Core.Runtime/RequestContext.cpp @@ -55,7 +55,7 @@ namespace CefSharp { ThrowIfDisposed(); - CefRefPtr wrapper = callback == nullptr ? NULL : new CefCompletionCallbackAdapter(callback); + CefRefPtr wrapper = callback == nullptr ? nullptr : new CefCompletionCallbackAdapter(callback); auto cookieManager = _requestContext->GetCookieManager(wrapper); if (cookieManager.get()) @@ -142,7 +142,7 @@ namespace CefSharp { ThrowIfDisposed(); - CefRefPtr wrapper = callback == nullptr ? NULL : new CefCompletionCallbackAdapter(callback); + CefRefPtr wrapper = callback == nullptr ? nullptr : new CefCompletionCallbackAdapter(callback); _requestContext->ClearCertificateExceptions(wrapper); } @@ -158,7 +158,7 @@ namespace CefSharp callback = gcnew CefSharp::Callback::NoOpCompletionCallback(); } - CefRefPtr wrapper = callback == nullptr ? NULL : new CefCompletionCallbackAdapter(callback); + CefRefPtr wrapper = callback == nullptr ? nullptr : new CefCompletionCallbackAdapter(callback); _requestContext->ClearHttpAuthCredentials(wrapper); } @@ -167,7 +167,7 @@ namespace CefSharp { ThrowIfDisposed(); - CefRefPtr wrapper = callback == nullptr ? NULL : new CefCompletionCallbackAdapter(callback); + CefRefPtr wrapper = callback == nullptr ? nullptr : new CefCompletionCallbackAdapter(callback); _requestContext->CloseAllConnections(wrapper); } @@ -257,7 +257,7 @@ namespace CefSharp } } - CefRefPtr extensionHandler = handler == nullptr ? NULL : new CefExtensionHandlerAdapter(handler); + CefRefPtr extensionHandler = handler == nullptr ? nullptr : new CefExtensionHandlerAdapter(handler); if (CefCurrentlyOn(CefThreadId::TID_UI)) { diff --git a/CefSharp.Core.Runtime/RequestContext.h b/CefSharp.Core.Runtime/RequestContext.h index 14c92d28c..7a8f86e79 100644 --- a/CefSharp.Core.Runtime/RequestContext.h +++ b/CefSharp.Core.Runtime/RequestContext.h @@ -52,7 +52,7 @@ namespace CefSharp { if (this == nullptr) { - return NULL; + return nullptr; } return _requestContext.get(); } @@ -61,14 +61,14 @@ namespace CefSharp RequestContext() { CefRequestContextSettings settings; - _requestContext = CefRequestContext::CreateContext(settings, NULL); + _requestContext = CefRequestContext::CreateContext(settings, nullptr); } RequestContext(RequestContextSettings^ settings) : _settings(settings) { PathCheck::AssertAbsolute(settings->CachePath, "RequestContextSettings.CachePath"); - _requestContext = CefRequestContext::CreateContext(settings, NULL); + _requestContext = CefRequestContext::CreateContext(settings, nullptr); } RequestContext(IRequestContextHandler^ requestContextHandler) @@ -87,7 +87,7 @@ namespace CefSharp ///Creates a new context object that shares storage with | other | and uses an optional | handler | . RequestContext(IRequestContext^ otherRequestContext) { - _requestContext = CefRequestContext::CreateContext((RequestContext^)otherRequestContext->UnWrap(), NULL); + _requestContext = CefRequestContext::CreateContext((RequestContext^)otherRequestContext->UnWrap(), nullptr); } RequestContext(IRequestContext^ otherRequestContext, IRequestContextHandler^ requestContextHandler) @@ -97,7 +97,7 @@ namespace CefSharp !RequestContext() { - _requestContext = NULL; + _requestContext = nullptr; } ~RequestContext() @@ -119,7 +119,7 @@ namespace CefSharp static IRequestContext^ CreateContext(IRequestContext^ other, IRequestContextHandler^ requestContextHandler) { auto otherRequestContext = static_cast(other->UnWrap()); - CefRefPtr handler = requestContextHandler == nullptr ? NULL : new CefRequestContextHandlerAdapter(requestContextHandler); + CefRefPtr handler = requestContextHandler == nullptr ? nullptr : new CefRequestContextHandlerAdapter(requestContextHandler); auto newContext = CefRequestContext::CreateContext(otherRequestContext, handler); return gcnew RequestContext(newContext); diff --git a/CefSharp.Core.Runtime/UrlRequest.h b/CefSharp.Core.Runtime/UrlRequest.h index 10b60119d..32fa55b81 100644 --- a/CefSharp.Core.Runtime/UrlRequest.h +++ b/CefSharp.Core.Runtime/UrlRequest.h @@ -35,7 +35,7 @@ namespace CefSharp !UrlRequest() { - _urlRequest = NULL; + _urlRequest = nullptr; } ~UrlRequest() diff --git a/CefSharp.Core.Runtime/WindowInfo.h b/CefSharp.Core.Runtime/WindowInfo.h index cc48a8ca9..04406a2de 100644 --- a/CefSharp.Core.Runtime/WindowInfo.h +++ b/CefSharp.Core.Runtime/WindowInfo.h @@ -43,7 +43,7 @@ namespace CefSharp delete _windowInfo; } - _windowInfo = NULL; + _windowInfo = nullptr; } ~WindowInfo()