summaryrefslogtreecommitdiff
path: root/animations
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:09:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:15 +0100
commitcb0fb3edd43194311a76ad6c0d3adad7f6dfe53d (patch)
treeedb59995aab87193961ec54d856127519c756ce9 /animations
parent3fbe1c814da59a4ed722ee5777bec0c59eb57a25 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I11a107dadd064452b983c69356e7562ed36c8bc3
Diffstat (limited to 'animations')
-rw-r--r--animations/source/animcore/animcore.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx
index fd24f90d1559..bfe6657c3d49 100644
--- a/animations/source/animcore/animcore.cxx
+++ b/animations/source/animcore/animcore.cxx
@@ -403,7 +403,7 @@ Any SAL_CALL TimeContainerEnumeration::nextElement()
-Sequence< Type >* AnimationNode::mpTypes[] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL };
+Sequence< Type >* AnimationNode::mpTypes[] = { nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr };
AnimationNode::AnimationNode( sal_Int16 nNodeType )
: maChangeListener(maMutex),
@@ -415,7 +415,7 @@ AnimationNode::AnimationNode( sal_Int16 nNodeType )
mfAcceleration( 0.0 ),
mfDecelerate( 0.0 ),
mbAutoReverse( false ),
- mpParent(0),
+ mpParent(nullptr),
mnValueType( 0 ),
mnSubItem( 0 ),
mnCalcMode( (nNodeType == AnimationNodeType::ANIMATEMOTION) ? AnimationCalcMode::PACED : AnimationCalcMode::LINEAR),
@@ -456,7 +456,7 @@ AnimationNode::AnimationNode( const AnimationNode& rNode )
mfDecelerate( rNode.mfDecelerate ),
mbAutoReverse( rNode.mbAutoReverse ),
maUserData( rNode.maUserData ),
- mpParent(0),
+ mpParent(nullptr),
// attributes for XAnimate
maTarget( rNode.maTarget ),
@@ -1242,7 +1242,7 @@ void SAL_CALL AnimationNode::setParent( const Reference< XInterface >& Parent )
{
mxParent = Parent;
- mpParent = 0;
+ mpParent = nullptr;
Reference< XUnoTunnel > xTunnel( mxParent.get(), UNO_QUERY );
if( xTunnel.is() )
mpParent = reinterpret_cast< AnimationNode* >( sal::static_int_cast< sal_IntPtr >(xTunnel->getSomething( getUnoTunnelId() )));
@@ -1987,7 +1987,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::replaceChild( const Referenc
if( ::std::find(maChildren.begin(), maChildren.end(), newChild) != maChildren.end() )
throw ElementExistException();
- Reference< XInterface > xNull( 0 );
+ Reference< XInterface > xNull( nullptr );
oldChild->setParent( xNull );
(*replace) = newChild;
@@ -2013,7 +2013,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::removeChild( const Reference
if( old == maChildren.end() )
throw NoSuchElementException();
- Reference< XInterface > xNull( 0 );
+ Reference< XInterface > xNull( nullptr );
oldChild->setParent( xNull );
maChildren.erase( old );