Skip to content

Commit

Permalink
Silence a coverity warning about comparing the address of pointer 'ch…
Browse files Browse the repository at this point in the history
…ild' when it might be null. None issue, but it does no harm to fix.
  • Loading branch information
stuartm committed May 26, 2013
1 parent d93eb3c commit e042787
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmythui/mythuitype.cpp
Expand Up @@ -182,6 +182,9 @@ void MythUIType::DeleteChild(const QString &name)
*/
void MythUIType::DeleteChild(MythUIType *child)
{
if (!child)
return;

QMutableListIterator<MythUIType *> it(m_ChildrenList);

while (it.hasNext())
Expand Down

0 comments on commit e042787

Please sign in to comment.