diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:29:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 10:32:01 +0100 |
commit | 51b45df6bba163dec7ba91c700de695ad517e5dd (patch) | |
tree | 566633496f4048112c75edbbe250b0f01d86a8dd /xmloff/source/xforms/TokenContext.cxx | |
parent | 87bae0e188aa3ce3c31d1aa91707c0fad6b81b65 (diff) |
loplugin:nullptr (automatic rewrite)
Change-Id: I8690de2cb68dcfedc9f2239ce66cea06fd94bc16
Diffstat (limited to 'xmloff/source/xforms/TokenContext.cxx')
-rw-r--r-- | xmloff/source/xforms/TokenContext.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/xforms/TokenContext.cxx b/xmloff/source/xforms/TokenContext.cxx index 981c15e50659..8751b9d0771c 100644 --- a/xmloff/source/xforms/TokenContext.cxx +++ b/xmloff/source/xforms/TokenContext.cxx @@ -60,7 +60,7 @@ void TokenContext::StartElement( // - if in map: call HandleAttribute // - xmlns:... : ignore // - other: warning - DBG_ASSERT( mpAttributes != NULL, "no token map for attributes" ); + DBG_ASSERT( mpAttributes != nullptr, "no token map for attributes" ); SvXMLTokenMap aMap( mpAttributes ); sal_Int16 nCount = xAttributeList->getLength(); @@ -98,9 +98,9 @@ SvXMLImportContext* TokenContext::CreateChildContext( { // call HandleChild for elements in token map. Ignore other content. - SvXMLImportContext* pContext = NULL; + SvXMLImportContext* pContext = nullptr; - DBG_ASSERT( mpChildren != NULL, "no token map for child elements" ); + DBG_ASSERT( mpChildren != nullptr, "no token map for child elements" ); SvXMLTokenMap aMap( mpChildren ); sal_uInt16 nToken = aMap.Get( nPrefix, rLocalName ); if( nToken != XML_TOK_UNKNOWN ) @@ -110,7 +110,7 @@ SvXMLImportContext* TokenContext::CreateChildContext( } // error handling: create default context and generate warning - if( pContext == NULL ) + if( pContext == nullptr ) { GetImport().SetError( XMLERROR_UNKNOWN_ELEMENT, rLocalName ); pContext = new SvXMLImportContext( GetImport(), nPrefix, rLocalName ); |