Skip to content
Permalink
Browse files

Minor code improvements

  • Loading branch information
stefanuhrig committed Jan 7, 2021
1 parent e5e7b31 commit 34f2005cd7e8d06c7df14284503fb393499b2263
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/providers/hana/qgshanaconnectionstringbuilder.cpp
@@ -23,14 +23,13 @@ QgsHanaConnectionStringBuilder::QgsHanaConnectionStringBuilder( const QgsDataSou
, mDatabase( uri.database() )
, mUserName( uri.username() )
, mPassword( uri.password() )
, mSslEnabled( false )
{
if ( !uri.hasParam( QStringLiteral( "sslEnabled" ) ) )
return;

mSslEnabled = ( uri.param( QStringLiteral( "sslEnabled" ) ) == QLatin1String( "true" ) ) ? true : false;
mSslEnabled = ( uri.param( QStringLiteral( "sslEnabled" ) ) == QLatin1String( "true" ) );
mSslCryptoProvider = uri.param( QStringLiteral( "sslCryptoProvider" ) );
mSslValidateCertificate = uri.param( QStringLiteral( "sslValidateCertificate" ) ) == QLatin1String( "true" ) ? true : false;
mSslValidateCertificate = uri.param( QStringLiteral( "sslValidateCertificate" ) ) == QLatin1String( "true" );
if ( mSslValidateCertificate )
mSslHostNameInCertificate = uri.param( QStringLiteral( "sslHostNameInCertificate" ) );
mSslKeyStore = uri.param( QStringLiteral( "sslKeyStore" ) );

0 comments on commit 34f2005

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