summaryrefslogtreecommitdiff
path: root/reportdesign/source/core/sdr/RptPage.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:21:28 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:34 +0100
commite96bf3c40f945d15a8bdc9cffc27346dfb3cb246 (patch)
treef61fc8ea79d0d0dbb57bab725242145831357061 /reportdesign/source/core/sdr/RptPage.cxx
parent70bd790b62f79ad8bbdccdf9c743dfca10ec19aa (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I9cace0074f2fd0e71e41779b9edd099abfa8dedc
Diffstat (limited to 'reportdesign/source/core/sdr/RptPage.cxx')
-rw-r--r--reportdesign/source/core/sdr/RptPage.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/reportdesign/source/core/sdr/RptPage.cxx b/reportdesign/source/core/sdr/RptPage.cxx
index 387546749825..3dff18e62d73 100644
--- a/reportdesign/source/core/sdr/RptPage.cxx
+++ b/reportdesign/source/core/sdr/RptPage.cxx
@@ -61,13 +61,13 @@ OReportPage::~OReportPage()
SdrPage* OReportPage::Clone() const
{
- return Clone(0);
+ return Clone(nullptr);
}
SdrPage* OReportPage::Clone( SdrModel* const pNewModel ) const
{
OReportPage *const pNewPage = new OReportPage( *this );
- OReportModel* pReportModel = 0;
+ OReportModel* pReportModel = nullptr;
if ( pNewModel )
{
pReportModel = dynamic_cast<OReportModel*>( pNewModel );
@@ -124,7 +124,7 @@ SdrObject* OReportPage::RemoveObject(size_t nObjNum)
OUnoObject& rUnoObj = dynamic_cast<OUnoObject&>(*pObj);
uno::Reference< container::XChild> xChild(rUnoObj.GetUnoControlModel(),uno::UNO_QUERY);
if ( xChild.is() )
- xChild->setParent(NULL);
+ xChild->setParent(nullptr);
}
return pObj;
}
@@ -139,7 +139,7 @@ void OReportPage::insertObject(const uno::Reference< report::XReportComponent >&
return; // Object already in list
SvxShape* pShape = SvxShape::getImplementation( _xObject );
- OObjectBase* pObject = pShape ? dynamic_cast< OObjectBase* >( pShape->GetSdrObject() ) : NULL;
+ OObjectBase* pObject = pShape ? dynamic_cast< OObjectBase* >( pShape->GetSdrObject() ) : nullptr;
OSL_ENSURE( pObject, "OReportPage::insertObject: no implementation object found for the given shape/component!" );
if ( pObject )
pObject->StartListening();