NULL to nullptr

This commit is contained in:
Arthur Ice
2013-05-04 18:06:58 -07:00
parent e1c2657b11
commit 7560b6b0a7
216 changed files with 4151 additions and 4151 deletions
+2 -2
View File
@@ -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;
}
+2 -2
View File
@@ -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;
}
+4 -4
View File
@@ -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 );