Skip to content

Commit

Permalink
Fix Coverity unreachable code warning
Browse files Browse the repository at this point in the history
(cherry-picked from d5d553f)
  • Loading branch information
nyalldawson committed Apr 6, 2018
1 parent be2e2f3 commit 6c0fae3
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 6c0fae3

Please sign in to comment.