From a7c24ca48995cf2bf436156302f96b91bf135409 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Mon, 13 Nov 2017 15:03:31 +0100 Subject: Code modernize ... * replace 0/NULL with nullptr [using clang-tidy] --- plugins/Toaster/src/toast_notification.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/Toaster/src/toast_notification.cpp') diff --git a/plugins/Toaster/src/toast_notification.cpp b/plugins/Toaster/src/toast_notification.cpp index b815fd9e68..56eae765e6 100644 --- a/plugins/Toaster/src/toast_notification.cpp +++ b/plugins/Toaster/src/toast_notification.cpp @@ -39,23 +39,23 @@ HRESULT ToastNotification::CreateXml(_Outptr_ ABI::Windows::Data::Xml::Dom::IXml ComPtr xmlDocument; CHECKHR(Windows::Foundation::ActivateInstance(StringReferenceWrapper(RuntimeClass_Windows_Data_Xml_Dom_XmlDocument).Get(), &xmlDocument)); - HXML xmlToast = xmlCreateNode(L"toast", NULL, 0); + HXML xmlToast = xmlCreateNode(L"toast", nullptr, 0); - HXML xmlAudioNode = xmlAddChild(xmlToast, L"audio", NULL); + HXML xmlAudioNode = xmlAddChild(xmlToast, L"audio", nullptr); xmlAddAttr(xmlAudioNode, L"silent", L"true"); - HXML xmlVisualNode = xmlAddChild(xmlToast, L"visual", NULL); + HXML xmlVisualNode = xmlAddChild(xmlToast, L"visual", nullptr); - HXML xmlBindingNode = xmlAddChild(xmlVisualNode, L"binding", NULL); + HXML xmlBindingNode = xmlAddChild(xmlVisualNode, L"binding", nullptr); xmlAddAttr(xmlBindingNode, L"template", L"ToastImageAndText02"); if (_imagePath) { - HXML xmlImageNode = xmlAddChild(xmlBindingNode, L"image", NULL); + HXML xmlImageNode = xmlAddChild(xmlBindingNode, L"image", nullptr); xmlAddAttr(xmlImageNode, L"id", L"1"); xmlAddAttr(xmlImageNode, L"src", CMStringW(FORMAT, L"file:///%s", _imagePath)); } - HXML xmlTitleNode = xmlAddChild(xmlBindingNode, L"text", _caption != NULL ? _caption : L"Miranda NG"); + HXML xmlTitleNode = xmlAddChild(xmlBindingNode, L"text", _caption != nullptr ? _caption : L"Miranda NG"); xmlAddAttr(xmlTitleNode, L"id", L"1"); if (_text) { -- cgit v1.2.3