Skip to content

Commit

Permalink
Fix identation in qgshanaconnection.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Rylov authored and mrylov committed Dec 7, 2020
1 parent 1a3ffb9 commit 5929a76
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/providers/hana/qgshanaconnection.cpp
Expand Up @@ -44,19 +44,19 @@ using namespace std;
static const uint8_t CREDENTIALS_INPUT_MAX_ATTEMPTS = 5;

static void addNewLayer( QVector<QgsHanaLayerProperty> &list,
const QgsHanaLayerProperty &layerProperty, bool checkDuplicates = false )
const QgsHanaLayerProperty &layerProperty, bool checkDuplicates = false )
{
if ( checkDuplicates )
{
auto res = std::find_if( list.begin(), list.end(),
[&]( const QgsHanaLayerProperty & lp )
{ return ( lp.schemaName == layerProperty.schemaName && lp.tableName == layerProperty.tableName ); } );
if ( checkDuplicates )
{
auto res = std::find_if( list.begin(), list.end(),
[&]( const QgsHanaLayerProperty & lp )
{ return ( lp.schemaName == layerProperty.schemaName && lp.tableName == layerProperty.tableName ); } );

if ( res != list.end() )
return;
}
if ( res != list.end() )
return;
}

list << layerProperty;
list << layerProperty;
}

bool QgsHanaConnection::sConnectionAttemptCanceled = false;
Expand Down

0 comments on commit 5929a76

Please sign in to comment.