diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/Toaster/src/toast_notification.cpp | |
parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/Toaster/src/toast_notification.cpp')
-rw-r--r-- | plugins/Toaster/src/toast_notification.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<ABI::Windows::Data::Xml::Dom::IXmlDocumentIO> 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)
{
|