summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-03-24 20:50:41 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-03-25 10:54:05 +0900
commitc7af37db60aab361e8ab01e69c816d249fb558b6 (patch)
tree4cbda4ef41484941db704d9d022aec4a3cdc11b8 /idlc
parentfad530fa03cda8a1cd1490bc579fe6bc71638920 (diff)
deleting NULL is safe
Change-Id: I3748d0034b2c8e9d9122ad2a9001763eb1265e1d
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astunion.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/idlc/source/astunion.cxx b/idlc/source/astunion.cxx
index 827dbbda61eb..8a03ae5d9d4a 100644
--- a/idlc/source/astunion.cxx
+++ b/idlc/source/astunion.cxx
@@ -362,8 +362,7 @@ AstUnionBranch::AstUnionBranch(AstUnionLabel* pLabel, AstType const * pType, con
AstUnionBranch::~AstUnionBranch()
{
- if ( m_pLabel )
- delete m_pLabel;
+ delete m_pLabel;
}
AstUnionLabel::AstUnionLabel(UnionLabel labelKind, AstExpression* pExpr)
@@ -376,8 +375,7 @@ AstUnionLabel::AstUnionLabel(UnionLabel labelKind, AstExpression* pExpr)
AstUnionLabel::~AstUnionLabel()
{
- if ( m_pLabelValue )
- delete m_pLabelValue;
+ delete m_pLabelValue;
}