summaryrefslogtreecommitdiff
path: root/editeng/source/items/bulitem.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:14:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:24 +0100
commit217f7f236fd0ef0535cf11de35807bc5f1de9bb6 (patch)
treef49d8a62e6500bd025853388b5dd9d33de357b9a /editeng/source/items/bulitem.cxx
parent6bab3811c374e3185ea07e7cb0d08f8b90ef81aa (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I9fe00eef7ddcd4a3c87e497a8d62f98e71a0d6d8
Diffstat (limited to 'editeng/source/items/bulitem.cxx')
-rw-r--r--editeng/source/items/bulitem.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/editeng/source/items/bulitem.cxx b/editeng/source/items/bulitem.cxx
index 3207391fb2a3..0b803705354d 100644
--- a/editeng/source/items/bulitem.cxx
+++ b/editeng/source/items/bulitem.cxx
@@ -109,7 +109,7 @@ SvxBulletItem::SvxBulletItem( sal_uInt16 _nWhich ) : SfxPoolItem( _nWhich )
SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich )
: SfxPoolItem(_nWhich)
- , pGraphicObject(NULL)
+ , pGraphicObject(nullptr)
, nStart(0)
, nStyle(SvxBulletStyle::ABC_BIG)
, nScale(0)
@@ -167,7 +167,7 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich )
SvxBulletItem::SvxBulletItem( const SvxBulletItem& rItem) : SfxPoolItem( rItem )
{
aFont = rItem.aFont;
- pGraphicObject = ( rItem.pGraphicObject ? new GraphicObject( *rItem.pGraphicObject ) : NULL );
+ pGraphicObject = ( rItem.pGraphicObject ? new GraphicObject( *rItem.pGraphicObject ) : nullptr );
aPrevText = rItem.aPrevText;
aFollowText = rItem.aFollowText;
nStart = rItem.nStart;
@@ -211,7 +211,7 @@ void SvxBulletItem::SetDefaultFont_Impl()
void SvxBulletItem::SetDefaults_Impl()
{
- pGraphicObject = NULL;
+ pGraphicObject = nullptr;
nWidth = 1200; // 1.2cm
nStart = 1;
nStyle = SvxBulletStyle::N123;
@@ -294,7 +294,7 @@ SvStream& SvxBulletItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) c
if( pGraphicObject )
{
delete( const_cast< SvxBulletItem* >( this )->pGraphicObject );
- const_cast< SvxBulletItem* >( this )->pGraphicObject = NULL;
+ const_cast< SvxBulletItem* >( this )->pGraphicObject = nullptr;
}
const_cast< SvxBulletItem* >( this )->nStyle = SvxBulletStyle::NONE;
@@ -391,7 +391,7 @@ void SvxBulletItem::SetGraphicObject( const GraphicObject& rGraphicObject )
if( pGraphicObject )
{
delete pGraphicObject;
- pGraphicObject = NULL;
+ pGraphicObject = nullptr;
}
}
else