diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:12:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:20 +0100 |
commit | 311fd06af4e297fa748684a61edd3ee38845c485 (patch) | |
tree | 6d161a26bd958bf86971d322a7c70d8e9b5e5fdb /cppcanvas/source/mtfrenderer/implrenderer.cxx | |
parent | c0bd59c15b4a6e8523693c8a354456b9fadb8832 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I68f6c78d1a539a960efbcf81be1e5b2bd26c2bc5
Diffstat (limited to 'cppcanvas/source/mtfrenderer/implrenderer.cxx')
-rw-r--r-- | cppcanvas/source/mtfrenderer/implrenderer.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index c536b7f4731e..c9871bd9fba9 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -423,7 +423,7 @@ namespace cppcanvas "ImplRenderer::skipContent(): NULL string given" ); MetaAction* pCurrAct; - while( (pCurrAct=rMtf.NextAction()) != NULL ) + while( (pCurrAct=rMtf.NextAction()) != nullptr ) { // increment action index, we've skipped an action. ++io_rCurrActionIndex; @@ -455,7 +455,7 @@ namespace cppcanvas sal_uIntPtr nPos( 1 ); MetaAction* pCurrAct; - while( (pCurrAct=rMtf.NextAction()) != NULL ) + while( (pCurrAct=rMtf.NextAction()) != nullptr ) { if( pCurrAct->GetType() == nType ) { @@ -1619,10 +1619,10 @@ namespace cppcanvas // Handle gradients if (pAct->GetComment().equalsIgnoreAsciiCase("XGRAD_SEQ_BEGIN")) { - MetaGradientExAction* pGradAction = NULL; + MetaGradientExAction* pGradAction = nullptr; bool bDone( false ); while( !bDone && - (pCurrAct=rMtf.NextAction()) != NULL ) + (pCurrAct=rMtf.NextAction()) != nullptr ) { switch( pCurrAct->GetType() ) { @@ -2488,7 +2488,7 @@ namespace cppcanvas sText, pAct->GetIndex(), nLen, - NULL, + nullptr, rFactoryParms, bSubsettableActions ); } @@ -2890,14 +2890,14 @@ namespace cppcanvas SAL_INFO( "cppcanvas.emf", "::cppcanvas::internal::ImplRenderer::ImplRenderer(mtf)" ); - OSL_ENSURE( rCanvas.get() != NULL && rCanvas->getUNOCanvas().is(), + OSL_ENSURE( rCanvas.get() != nullptr && rCanvas->getUNOCanvas().is(), "ImplRenderer::ImplRenderer(): Invalid canvas" ); OSL_ENSURE( rCanvas->getUNOCanvas()->getDevice().is(), "ImplRenderer::ImplRenderer(): Invalid graphic device" ); // make sure canvas and graphic device are valid; action // creation don't check that every time - if( rCanvas.get() == NULL || + if( rCanvas.get() == nullptr || !rCanvas->getUNOCanvas().is() || !rCanvas->getUNOCanvas()->getDevice().is() ) { |