summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/XMLEngineMI.cpp
diff options
context:
space:
mode:
authorGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:03:31 +0100
committerGoraf <22941576+Goraf@users.noreply.github.com>2017-11-13 15:07:33 +0100
commita7c24ca48995cf2bf436156302f96b91bf135409 (patch)
tree953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/Quotes/src/XMLEngineMI.cpp
parent591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff)
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/Quotes/src/XMLEngineMI.cpp')
-rw-r--r--plugins/Quotes/src/XMLEngineMI.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Quotes/src/XMLEngineMI.cpp b/plugins/Quotes/src/XMLEngineMI.cpp
index ed63a63784..413ed619dd 100644
--- a/plugins/Quotes/src/XMLEngineMI.cpp
+++ b/plugins/Quotes/src/XMLEngineMI.cpp
@@ -72,12 +72,12 @@ public:
virtual tstring GetAttributeValue(const tstring& rsAttrName)
{
LPCTSTR pszValue = xmlGetAttrValue(m_hXML, rsAttrName.c_str());
- return ((NULL != pszValue) ? tstring(pszValue) : tstring());
+ return ((nullptr != pszValue) ? tstring(pszValue) : tstring());
}
virtual void Write(tostream& o)const
{
- ptrW ss(xmlToString(m_hXML, NULL));
+ ptrW ss(xmlToString(m_hXML, nullptr));
if (ss != NULL)
o << (char*)T2Utf(ss);
}
@@ -111,7 +111,7 @@ IXMLNode::TXMLNodePtr CXMLEngineMI::LoadFile(const tstring& rsFileName)const
int nLen = (int)cBytes;
ptrW ss(mir_utf8decodeW(pBuffer));
if (ss) {
- HXML h = xmlParseString(ss, &nLen, NULL);
+ HXML h = xmlParseString(ss, &nLen, nullptr);
if (h)
pResult = IXMLNode::TXMLNodePtr(new CXMLNodeMI(h, true));
}