Skip to content

Commit

Permalink
Use nullptr for string instead of 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Duttenheim committed Aug 24, 2023
1 parent 5db2c7d commit e491818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/foundation/util/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class String
*/
inline
String::String() :
heapBuffer(0),
heapBuffer(nullptr),
strLen(0),
heapBufferSize(0)
{
Expand All @@ -431,7 +431,7 @@ String::Delete()
if (this->heapBuffer)
{
Memory::Free(Memory::StringDataHeap, (void*) this->heapBuffer);
this->heapBuffer = 0;
this->heapBuffer = nullptr;
}
this->localBuffer[0] = 0;
this->strLen = 0;
Expand Down

0 comments on commit e491818

Please sign in to comment.