Skip to content

Commit

Permalink
Fix missing break statements (identified by Coverity)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 29, 2017
1 parent e6a8f9d commit 12ed31b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/locator/qgslocatoroptionswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ QVariant QgsLocatorFiltersModel::data( const QModelIndex &index, int role ) cons
case Default:
return QVariant();
}
break;
}

case Qt::CheckStateRole:
Expand All @@ -142,6 +143,7 @@ QVariant QgsLocatorFiltersModel::data( const QModelIndex &index, int role ) cons
else
return filterForIndex( index )->useWithoutPrefix() ? Qt::Checked : Qt::Unchecked;
}
break;
}

return QVariant();
Expand Down
2 changes: 2 additions & 0 deletions src/gui/locator/qgslocatorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ QVariant QgsLocatorModel::data( const QModelIndex &index, int role ) const
else
return QVariant();
}
break;
}

case Qt::DecorationRole:
Expand All @@ -425,6 +426,7 @@ QVariant QgsLocatorModel::data( const QModelIndex &index, int role ) const
case Description:
return QVariant();
}
break;

case ResultDataRole:
if ( !mResults.at( index.row() ).filter )
Expand Down

0 comments on commit 12ed31b

Please sign in to comment.