From a96b564aeeea6cd27d68084327d11be615ebc0a8 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 10:17:21 +0100 Subject: loplugin:nullptr (automatic rewrite) Change-Id: Ic42387288c96436915956ede2eb510b9c3fbc49b --- idlc/source/fehelper.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'idlc/source/fehelper.cxx') diff --git a/idlc/source/fehelper.cxx b/idlc/source/fehelper.cxx index 2a5fb1d3468c..4e4c549dc5b0 100644 --- a/idlc/source/fehelper.cxx +++ b/idlc/source/fehelper.cxx @@ -49,20 +49,20 @@ AstType const * FeDeclarator::compose(AstDeclaration const * pDecl) { const AstType* pType; - if ( pDecl == 0 ) + if ( pDecl == nullptr ) { - return NULL; + return nullptr; } if ( !pDecl->isType() ) { ErrorHandler::noTypeError(pDecl); - return NULL; + return nullptr; } pType = static_cast(pDecl); - if (m_declType == FD_simple || m_pComplexPart == NULL) + if (m_declType == FD_simple || m_pComplexPart == nullptr) return pType; - return NULL; // return through this statement should not happen + return nullptr; // return through this statement should not happen } FeInheritanceHeader::FeInheritanceHeader( @@ -70,9 +70,9 @@ FeInheritanceHeader::FeInheritanceHeader( std::vector< OString > * typeParameters) : m_nodeType(nodeType) , m_pName(pName) - , m_pInherits(NULL) + , m_pInherits(nullptr) { - if (typeParameters != 0) { + if (typeParameters != nullptr) { m_typeParameters = *typeParameters; } initializeInherits(pInherits); -- cgit