summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/octree.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:28:29 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:32:00 +0100
commitd3b6cb7ec2da4afb5687c9d28b2be2f96e6aa7b1 (patch)
treee9d209d6d5f06cacd8e0df78c7f6b8ad45d74be5 /vcl/source/gdi/octree.cxx
parent45979047abbd9da7a29401f298e8ef9ab58ad337 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0
Diffstat (limited to 'vcl/source/gdi/octree.cxx')
-rw-r--r--vcl/source/gdi/octree.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/octree.cxx b/vcl/source/gdi/octree.cxx
index 6a0d891910c8..72066869803b 100644
--- a/vcl/source/gdi/octree.cxx
+++ b/vcl/source/gdi/octree.cxx
@@ -32,7 +32,7 @@ static const sal_uInt8 pImplMask[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02
// - NodeCache -
ImpNodeCache::ImpNodeCache( const sal_uLong nInitSize ) :
- pActNode( NULL )
+ pActNode( nullptr )
{
const sal_uLong nSize = nInitSize + 4;
@@ -61,7 +61,7 @@ ImpNodeCache::~ImpNodeCache()
Octree::Octree( const BitmapReadAccess& rReadAcc, sal_uLong nColors ) :
nMax ( nColors ),
nLeafCount ( 0L ),
- pTree ( NULL ),
+ pTree ( nullptr ),
pAcc ( &rReadAcc )
{
pNodeCache = new ImpNodeCache( nColors );
@@ -128,7 +128,7 @@ void Octree::ImplDeleteOctree( NODE** ppNode )
}
pNodeCache->ImplReleaseNode( *ppNode );
- *ppNode = NULL;
+ *ppNode = nullptr;
}
void Octree::ImplAdd( NODE** ppNode )
@@ -194,7 +194,7 @@ void Octree::ImplReduce()
pNode->nCount += pChild->nCount;
pNodeCache->ImplReleaseNode( pNode->pChild[ i ] );
- pNode->pChild[ i ] = NULL;
+ pNode->pChild[ i ] = nullptr;
nChildren++;
}
}