Skip to content

Commit

Permalink
Fix Coverity unreachable code warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 3, 2018
1 parent 0099b6e commit d5d553f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/layout/qgsabstractreportsection.cpp
Expand Up @@ -39,9 +39,6 @@ QgsProject *QgsAbstractReportSection::project()
QgsAbstractReportSection *current = this;
while ( QgsAbstractReportSection *parent = current->parentSection() )
{
if ( !parent )
return nullptr;

if ( QgsReport *report = dynamic_cast< QgsReport * >( parent ) )
return report->layoutProject();

Expand Down

0 comments on commit d5d553f

Please sign in to comment.