Skip to content

Commit

Permalink
Some more Clazy cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 29, 2017
1 parent 7e9428f commit 0815a6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/providers/ogr/qgsgeopackagedataitems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ bool QgsGeoPackageConnectionItem::handleDrop( const QMimeData *data, Qt::DropAct
}
if ( !srcLayer )
{
importResults.append( tr( "%1: %2" ).arg( dropUri.name ).arg( error ) );
importResults.append( tr( "%1: %2" ).arg( dropUri.name, error ) );
hasError = true;
continue;
}
Expand All @@ -370,7 +370,8 @@ bool QgsGeoPackageConnectionItem::handleDrop( const QMimeData *data, Qt::DropAct
// check if the destination layer already exists
bool exists = false;
// Q_FOREACH won't detach ...
for ( const auto child : children() )
const QVector< QgsDataItem *> c = children();
for ( const auto child : c )
{
if ( child->name() == dropUri.name )
{
Expand Down

0 comments on commit 0815a6e

Please sign in to comment.