summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/pagedata.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:22:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:36 +0100
commitde29ac09535d814e4be7e1bf0f10beb9f0f847e3 (patch)
tree139f75d657cb825622e812254b8b7df4e509140b /sc/source/ui/docshell/pagedata.cxx
parent60c40af090e420a8619b5236bde1ff4ef79100c6 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I765d2a600f9c57da50c85354688e3ae796750d94
Diffstat (limited to 'sc/source/ui/docshell/pagedata.cxx')
-rw-r--r--sc/source/ui/docshell/pagedata.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/docshell/pagedata.cxx b/sc/source/ui/docshell/pagedata.cxx
index 6c1e32333bf5..7a73ae639ac7 100644
--- a/sc/source/ui/docshell/pagedata.cxx
+++ b/sc/source/ui/docshell/pagedata.cxx
@@ -26,8 +26,8 @@
ScPrintRangeData::ScPrintRangeData()
{
nPagesX = nPagesY = 0;
- pPageEndX = NULL;
- pPageEndY = NULL;
+ pPageEndX = nullptr;
+ pPageEndY = nullptr;
bTopDown = bAutomatic = true;
nFirstPage = 1;
}
@@ -47,7 +47,7 @@ void ScPrintRangeData::SetPagesX( size_t nCount, const SCCOL* pData )
memcpy( pPageEndX, pData, nCount * sizeof(SCCOL) );
}
else
- pPageEndX = NULL;
+ pPageEndX = nullptr;
nPagesX = nCount;
}
@@ -60,7 +60,7 @@ void ScPrintRangeData::SetPagesY( size_t nCount, const SCROW* pData )
memcpy( pPageEndY, pData, nCount * sizeof(SCROW) );
}
else
- pPageEndY = NULL;
+ pPageEndY = nullptr;
nPagesY = nCount;
}
@@ -70,7 +70,7 @@ ScPageBreakData::ScPageBreakData(size_t nMax)
if (nMax)
pData = new ScPrintRangeData[nMax];
else
- pData = NULL;
+ pData = nullptr;
nAlloc = nMax;
}