diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:20:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:31:32 +0100 |
commit | 8d12f43bb3668f4fdfcef0bd149d8b023e312e18 (patch) | |
tree | 989292510ee579777678940fcb5c93d75c3925dd /oox/source/helper/attributelist.cxx | |
parent | 1ddbbfdda834965c861a67e275ab58ff4d1f0bf9 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I62a20b440064aca6f102e61cb3984bb95e739a4f
Diffstat (limited to 'oox/source/helper/attributelist.cxx')
-rw-r--r-- | oox/source/helper/attributelist.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/oox/source/helper/attributelist.cxx b/oox/source/helper/attributelist.cxx index 160e3a935bd6..70abbc1e521f 100644 --- a/oox/source/helper/attributelist.cxx +++ b/oox/source/helper/attributelist.cxx @@ -107,16 +107,16 @@ sal_Int32 AttributeConversion::decodeIntegerHex( const OUString& rValue ) AttributeList::AttributeList( const Reference< XFastAttributeList >& rxAttribs ) : mxAttribs( rxAttribs ), - mpAttribList( NULL ) + mpAttribList( nullptr ) { OSL_ENSURE( mxAttribs.is(), "AttributeList::AttributeList - missing attribute list interface" ); } sax_fastparser::FastAttributeList *AttributeList::getAttribList() const { - if( mpAttribList == NULL ) + if( mpAttribList == nullptr ) { - assert( dynamic_cast< sax_fastparser::FastAttributeList *>( mxAttribs.get() ) != NULL ); + assert( dynamic_cast< sax_fastparser::FastAttributeList *>( mxAttribs.get() ) != nullptr ); mpAttribList = static_cast< sax_fastparser::FastAttributeList *>( mxAttribs.get() ); } return mpAttribList; @@ -263,10 +263,10 @@ OUString AttributeList::getXString( sal_Int32 nAttrToken, const OUString& rDefau const char* AttributeList::getChar( sal_Int32 nAttrToken ) const { - const char* p = NULL; + const char* p = nullptr; bool bValid = getAttribList()->getAsChar(nAttrToken, p); if (!bValid) - p = NULL; + p = nullptr; return p; } |