summaryrefslogtreecommitdiff
path: root/idlc/source/fehelper.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:17:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:29 +0100
commita96b564aeeea6cd27d68084327d11be615ebc0a8 (patch)
tree122c691378f9a14c4c06dd5618e13a5b73d92226 /idlc/source/fehelper.cxx
parent85552d865b8dcd059b0eb33c42c8a491f88402e3 (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: Ic42387288c96436915956ede2eb510b9c3fbc49b
Diffstat (limited to 'idlc/source/fehelper.cxx')
-rw-r--r--idlc/source/fehelper.cxx14
1 files changed, 7 insertions, 7 deletions
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<const AstType*>(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);