summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svddrag.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:25:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:50 +0100
commit6cd7bf2043146a630925a2e49336f02c802f707a (patch)
tree786cecd8ab993e25cda497d45b68007050c30d61 /svx/source/svdraw/svddrag.cxx
parent28f4bee7bd7378141d8569186162e1a3166eb012 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I71682f28c6a54d33da6b0c971f34d0a705ff04f5
Diffstat (limited to 'svx/source/svdraw/svddrag.cxx')
-rw-r--r--svx/source/svdraw/svddrag.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svddrag.cxx b/svx/source/svdraw/svddrag.cxx
index f6ed475da790..91cd2d145072 100644
--- a/svx/source/svdraw/svddrag.cxx
+++ b/svx/source/svdraw/svddrag.cxx
@@ -27,7 +27,7 @@ void SdrDragStat::Clear(bool bLeaveOne)
aPnts.pop_back();
}
delete pUser;
- pUser=NULL;
+ pUser=nullptr;
aPnts.clear();
if (bLeaveOne) {
aPnts.push_back(new Point);
@@ -36,18 +36,18 @@ void SdrDragStat::Clear(bool bLeaveOne)
void SdrDragStat::Reset()
{
- pView=NULL;
- pPageView=NULL;
+ pView=nullptr;
+ pPageView=nullptr;
bShown=false;
nMinMov=1;
bMinMoved=false;
bHorFixed=false;
bVerFixed=false;
bWantNoSnap=false;
- pHdl=NULL;
+ pHdl=nullptr;
bOrtho4=false;
bOrtho8=false;
- pDragMethod=NULL;
+ pDragMethod=nullptr;
bEndDragChangesAttributes=false;
bEndDragChangesGeoAndAttributes=false;
bMouseIsUp=false;
@@ -132,7 +132,7 @@ void SdrDragStat::TakeCreateRect(Rectangle& rRect) const
rRect.Right()=aBtmRgt.X();
rRect.Bottom()=aBtmRgt.Y();
}
- if (pView!=NULL && pView->IsCreate1stPointAsCenter()) {
+ if (pView!=nullptr && pView->IsCreate1stPointAsCenter()) {
rRect.Top()+=rRect.Top()-rRect.Bottom();
rRect.Left()+=rRect.Left()-rRect.Right();
}