mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
NULL to nullptr
This commit is contained in:
@@ -42,7 +42,7 @@ TiXmlString::TiXmlString (const char* instring)
|
||||
if (!instring)
|
||||
{
|
||||
allocated = 0;
|
||||
cstring = NULL;
|
||||
cstring = nullptr;
|
||||
current_length = 0;
|
||||
return;
|
||||
}
|
||||
@@ -68,7 +68,7 @@ TiXmlString::TiXmlString (const TiXmlString& copy)
|
||||
if (! copy . allocated)
|
||||
{
|
||||
allocated = 0;
|
||||
cstring = NULL;
|
||||
cstring = nullptr;
|
||||
current_length = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ class TiXmlString
|
||||
TiXmlString ()
|
||||
{
|
||||
allocated = 0;
|
||||
cstring = NULL;
|
||||
cstring = nullptr;
|
||||
current_length = 0;
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ class TiXmlString
|
||||
{
|
||||
if (cstring)
|
||||
delete [] cstring;
|
||||
cstring = NULL;
|
||||
cstring = nullptr;
|
||||
allocated = 0;
|
||||
current_length = 0;
|
||||
}
|
||||
|
||||
@@ -495,7 +495,7 @@ public:
|
||||
#endif
|
||||
|
||||
/** Add a new node related to this. Adds a child past the LastChild.
|
||||
Returns a pointer to the new object or NULL if an error occured.
|
||||
Returns a pointer to the new object or nullptr if an error occured.
|
||||
*/
|
||||
TiXmlNode* InsertEndChild( const TiXmlNode& addThis );
|
||||
|
||||
@@ -512,17 +512,17 @@ public:
|
||||
TiXmlNode* LinkEndChild( TiXmlNode* addThis );
|
||||
|
||||
/** Add a new node related to this. Adds a child before the specified child.
|
||||
Returns a pointer to the new object or NULL if an error occured.
|
||||
Returns a pointer to the new object or nullptr if an error occured.
|
||||
*/
|
||||
TiXmlNode* InsertBeforeChild( TiXmlNode* beforeThis, const TiXmlNode& addThis );
|
||||
|
||||
/** Add a new node related to this. Adds a child after the specified child.
|
||||
Returns a pointer to the new object or NULL if an error occured.
|
||||
Returns a pointer to the new object or nullptr if an error occured.
|
||||
*/
|
||||
TiXmlNode* InsertAfterChild( TiXmlNode* afterThis, const TiXmlNode& addThis );
|
||||
|
||||
/** Replace a child of this node.
|
||||
Returns a pointer to the new object or NULL if an error occured.
|
||||
Returns a pointer to the new object or nullptr if an error occured.
|
||||
*/
|
||||
TiXmlNode* ReplaceChild( TiXmlNode* replaceThis, const TiXmlNode& withThis );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user