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/unodraw/XPropertyTable.cxx | |
parent | 28f4bee7bd7378141d8569186162e1a3166eb012 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I71682f28c6a54d33da6b0c971f34d0a705ff04f5
Diffstat (limited to 'svx/source/unodraw/XPropertyTable.cxx')
-rw-r--r-- | svx/source/unodraw/XPropertyTable.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx index 51f787c28ec9..1067674f17ec 100644 --- a/svx/source/unodraw/XPropertyTable.cxx +++ b/svx/source/unodraw/XPropertyTable.cxx @@ -89,7 +89,7 @@ XPropertyEntry* SvxUnoXPropertyTable::get( long index ) const if( mpList ) return mpList->Get(index); else - return NULL; + return nullptr; } // XServiceInfo @@ -105,7 +105,7 @@ void SAL_CALL SvxUnoXPropertyTable::insertByName( const OUString& aName, const { SolarMutexGuard aGuard; - if( NULL == mpList ) + if( nullptr == mpList ) throw lang::IllegalArgumentException(); if( hasByName( aName ) ) @@ -114,7 +114,7 @@ void SAL_CALL SvxUnoXPropertyTable::insertByName( const OUString& aName, const OUString aInternalName = SvxUnogetInternalNameForItem(mnWhich, aName); XPropertyEntry* pNewEntry = getEntry( aInternalName, aElement ); - if( NULL == pNewEntry ) + if( nullptr == pNewEntry ) throw lang::IllegalArgumentException(); if( mpList ) @@ -160,7 +160,7 @@ void SAL_CALL SvxUnoXPropertyTable::replaceByName( const OUString& aName, const if (pEntry && aInternalName.equals(pEntry->GetName())) { XPropertyEntry* pNewEntry = getEntry( aInternalName, aElement ); - if( NULL == pNewEntry ) + if( nullptr == pNewEntry ) throw lang::IllegalArgumentException(); if( mpList ) @@ -277,7 +277,7 @@ XPropertyEntry* SvxUnoXColorTable::getEntry( const OUString& rName, const uno::A { sal_Int32 nColor = 0; if( !(rAny >>= nColor) ) - return NULL; + return nullptr; const Color aColor( (ColorData)nColor ); return new XColorEntry( aColor, rName ); @@ -343,7 +343,7 @@ XPropertyEntry* SvxUnoXLineEndTable::getEntry( const OUString& rName, const uno: { if( !rAny.getValue() || rAny.getValueType() != cppu::UnoType<drawing::PolyPolygonBezierCoords>::get()) - return NULL; + return nullptr; basegfx::B2DPolyPolygon aPolyPolygon; drawing::PolyPolygonBezierCoords const * pCoords = static_cast<drawing::PolyPolygonBezierCoords const *>(rAny.getValue()); @@ -423,7 +423,7 @@ XPropertyEntry* SvxUnoXDashTable::getEntry( const OUString& rName, const uno::An { drawing::LineDash aLineDash; if(!(rAny >>= aLineDash)) - return NULL; + return nullptr; XDash aXDash; @@ -502,7 +502,7 @@ XPropertyEntry* SvxUnoXHatchTable::getEntry( const OUString& rName, const uno::A { drawing::Hatch aUnoHatch; if(!(rAny >>= aUnoHatch)) - return NULL; + return nullptr; XHatch aXHatch; aXHatch.SetHatchStyle( (css::drawing::HatchStyle)aUnoHatch.Style ); @@ -583,7 +583,7 @@ XPropertyEntry* SvxUnoXGradientTable::getEntry( const OUString& rName, const uno { awt::Gradient aGradient; if(!(rAny >>= aGradient)) - return NULL; + return nullptr; XGradient aXGradient; @@ -661,7 +661,7 @@ XPropertyEntry* SvxUnoXBitmapTable::getEntry( const OUString& rName, const uno:: { OUString aURL; if(!(rAny >>= aURL)) - return NULL; + return nullptr; const GraphicObject aGrafObj(GraphicObject::CreateGraphicObjectFromURL(aURL)); |