Skip to content
Permalink
Browse files

Some more Clazy cleanups

  • Loading branch information
nyalldawson committed Aug 29, 2017
1 parent 7e9428f commit 0815a6e714d35c1838756933474f776f6044b03e
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/providers/ogr/qgsgeopackagedataitems.cpp
@@ -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;
}
@@ -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 )
{

0 comments on commit 0815a6e

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