Skip to content
Permalink
Browse files

Fix Coverity unreachable code warning

(cherry-picked from d5d553f)
  • Loading branch information
nyalldawson committed Apr 6, 2018
1 parent be2e2f3 commit 6c0fae3ced52728578ccc96c9d8d045f803383f2
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/core/layout/qgsabstractreportsection.cpp
@@ -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();

0 comments on commit 6c0fae3

Please sign in to comment.
You can’t perform that action at this time.