summaryrefslogtreecommitdiffstats
path: root/src/LeakFinder.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-10-20 22:55:07 +0200
committerarchshift <admin@archshift.com>2014-10-23 05:12:49 +0200
commita26541a7c3ced0569098edd0aae61c097c2912f4 (patch)
tree4b7bea204c0ddd18bb4f95357f9eb77590bc2e8d /src/LeakFinder.h
parentComposableGenerator: Removed nullptr initializers. (diff)
downloadcuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.gz
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.bz2
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.lz
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.xz
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.tar.zst
cuberite-a26541a7c3ced0569098edd0aae61c097c2912f4.zip
Diffstat (limited to '')
-rw-r--r--src/LeakFinder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LeakFinder.h b/src/LeakFinder.h
index e63b9ec5d..ceaa53782 100644
--- a/src/LeakFinder.h
+++ b/src/LeakFinder.h
@@ -68,7 +68,7 @@ public:
LeakFinderShowCompleteCallstack = 0x1000
} LeakFinderOptions;
- LeakFinderOutput(int options = OptionsAll, LPCSTR szSymPath = NULL);
+ LeakFinderOutput(int options = OptionsAll, LPCSTR szSymPath = nullptr);
virtual void OnLeakSearchStart(LPCSTR sszLeakFinderName);
virtual void OnLeakStartEntry(LPCSTR szKeyName, SIZE_T nDataSize);
protected:
@@ -110,7 +110,7 @@ class ZZZ_LeakFinder
public:
ZZZ_LeakFinder()
{
- m_pXml = NULL;
+ m_pXml = nullptr;
#ifdef XML_LEAK_FINDER
m_pXml = new LeakFinderXmlOutput();
#endif
@@ -119,7 +119,7 @@ public:
~ZZZ_LeakFinder()
{
DeinitLeakFinder(m_pXml);
- if (m_pXml != NULL) delete m_pXml;
+ if (m_pXml != nullptr) delete m_pXml;
}
protected:
LeakFinderXmlOutput *m_pXml;
@@ -148,7 +148,7 @@ ZZZ_LeakFinder zzz_LeakFinder;
-extern void DumpUsedMemory(LeakFinderOutput * output = NULL);
+extern void DumpUsedMemory(LeakFinderOutput * output = nullptr);