Skip to content
Permalink
Browse files

Fix missing break statements (identified by Coverity)

  • Loading branch information
nyalldawson committed May 29, 2017
1 parent e6a8f9d commit 12ed31b742d03512892989d466fc2796951c206e
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/app/locator/qgslocatoroptionswidget.cpp
  2. +2 −0 src/gui/locator/qgslocatorwidget.cpp
@@ -117,6 +117,7 @@ QVariant QgsLocatorFiltersModel::data( const QModelIndex &index, int role ) cons
case Default:
return QVariant();
}
break;
}

case Qt::CheckStateRole:
@@ -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();
@@ -407,6 +407,7 @@ QVariant QgsLocatorModel::data( const QModelIndex &index, int role ) const
else
return QVariant();
}
break;
}

case Qt::DecorationRole:
@@ -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 )

0 comments on commit 12ed31b

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