diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:25:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:50 +0100 |
commit | 6cd7bf2043146a630925a2e49336f02c802f707a (patch) | |
tree | 786cecd8ab993e25cda497d45b68007050c30d61 /svx/source/svdraw/svdobjplusdata.cxx | |
parent | 28f4bee7bd7378141d8569186162e1a3166eb012 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I71682f28c6a54d33da6b0c971f34d0a705ff04f5
Diffstat (limited to 'svx/source/svdraw/svdobjplusdata.cxx')
-rw-r--r-- | svx/source/svdraw/svdobjplusdata.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdobjplusdata.cxx b/svx/source/svdraw/svdobjplusdata.cxx index 91ec34d7145a..b021e3723994 100644 --- a/svx/source/svdraw/svdobjplusdata.cxx +++ b/svx/source/svdraw/svdobjplusdata.cxx @@ -16,9 +16,9 @@ #include <vcl/outdev.hxx> SdrObjPlusData::SdrObjPlusData(): - pBroadcast(NULL), - pUserDataList(NULL), - pGluePoints(NULL) + pBroadcast(nullptr), + pUserDataList(nullptr), + pGluePoints(nullptr) { } @@ -32,13 +32,13 @@ SdrObjPlusData::~SdrObjPlusData() SdrObjPlusData* SdrObjPlusData::Clone(SdrObject* pObj1) const { SdrObjPlusData* pNeuPlusData=new SdrObjPlusData; - if (pUserDataList!=NULL) { + if (pUserDataList!=nullptr) { sal_uInt16 nCount=pUserDataList->GetUserDataCount(); if (nCount!=0) { pNeuPlusData->pUserDataList=new SdrObjUserDataList; for (sal_uInt16 i=0; i<nCount; i++) { SdrObjUserData* pNeuUserData=pUserDataList->GetUserData(i).Clone(pObj1); - if (pNeuUserData!=NULL) { + if (pNeuUserData!=nullptr) { pNeuPlusData->pUserDataList->AppendUserData(pNeuUserData); } else { OSL_FAIL("SdrObjPlusData::Clone(): UserData.Clone() returns NULL."); @@ -46,7 +46,7 @@ SdrObjPlusData* SdrObjPlusData::Clone(SdrObject* pObj1) const } } } - if (pGluePoints!=NULL) pNeuPlusData->pGluePoints=new SdrGluePointList(*pGluePoints); + if (pGluePoints!=nullptr) pNeuPlusData->pGluePoints=new SdrGluePointList(*pGluePoints); // MtfAnimator isn't copied either // #i68101# |