summaryrefslogtreecommitdiff
path: root/svtools/source/uno/unoimap.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:25:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:48 +0100
commit28f4bee7bd7378141d8569186162e1a3166eb012 (patch)
tree97cb855eec76da937068cda5c5f0f7d5bcd61e47 /svtools/source/uno/unoimap.cxx
parentbf057fab3c0d17bf2832c8d9fc6d34b1b859e660 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I7fc4b4d5c895f241cfb052b009e943e073f3befe
Diffstat (limited to 'svtools/source/uno/unoimap.cxx')
-rw-r--r--svtools/source/uno/unoimap.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/uno/unoimap.cxx b/svtools/source/uno/unoimap.cxx
index f0a6b11dd44e..75d18ce5a3db 100644
--- a/svtools/source/uno/unoimap.cxx
+++ b/svtools/source/uno/unoimap.cxx
@@ -594,7 +594,7 @@ SvUnoImageMapObject* SvUnoImageMap::getObject( const Any& aElement )
aElement >>= xObject;
SvUnoImageMapObject* pObject = SvUnoImageMapObject::getImplementation( xObject );
- if( NULL == pObject )
+ if( nullptr == pObject )
throw IllegalArgumentException();
return pObject;
@@ -606,7 +606,7 @@ void SAL_CALL SvUnoImageMap::insertByIndex( sal_Int32 Index, const Any& Element
{
SvUnoImageMapObject* pObject = getObject( Element );
const sal_Int32 nCount = maObjectList.size();
- if( NULL == pObject || Index > nCount )
+ if( nullptr == pObject || Index > nCount )
throw IndexOutOfBoundsException();
pObject->acquire();
@@ -649,7 +649,7 @@ void SAL_CALL SvUnoImageMap::replaceByIndex( sal_Int32 Index, const Any& Element
{
SvUnoImageMapObject* pObject = getObject( Element );
const sal_Int32 nCount = maObjectList.size();
- if( NULL == pObject || Index >= nCount )
+ if( nullptr == pObject || Index >= nCount )
throw IndexOutOfBoundsException();
std::list< SvUnoImageMapObject* >::iterator aIter = maObjectList.begin();
@@ -764,7 +764,7 @@ Reference< XInterface > SvUnoImageMap_createInstance( const ImageMap& rMap, cons
bool SvUnoImageMap_fillImageMap( Reference< XInterface > xImageMap, ImageMap& rMap )
{
SvUnoImageMap* pUnoImageMap = SvUnoImageMap::getImplementation( xImageMap );
- if( NULL == pUnoImageMap )
+ if( nullptr == pUnoImageMap )
return false;
return pUnoImageMap->fillImageMap( rMap );