Skip to content

Commit b72fb59

Browse files
committed
Remove some QT_VERSION >= 5 checks
1 parent 78134ee commit b72fb59

3 files changed

Lines changed: 0 additions & 40 deletions

File tree

‎src/core/auth/qgsauthconfig.cpp‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -357,18 +357,10 @@ QgsAuthConfigSslServer::QgsAuthConfigSslServer()
357357
, mVersion( 1 )
358358
{
359359
// TODO: figure out if Qt 5 has changed yet again, e.g. TLS-only
360-
#if QT_VERSION >= 0x040800
361360
mQtVersion = 480;
362361
// Qt 4.8 defaults to SecureProtocols, i.e. TlsV1SslV3
363362
// http://qt-project.org/doc/qt-4.8/qssl.html#SslProtocol-enum
364363
mSslProtocol = QSsl::SecureProtocols;
365-
#else
366-
mQtVersion = 470;
367-
// older Qt 4.7 defaults to now-vulnerable SSLv3
368-
// http://qt-project.org/doc/qt-4.7/qssl.html
369-
// Default this to TlsV1 instead
370-
mSslProtocol = QSsl::TlsV1;
371-
#endif
372364
}
373365

374366
const QList<QSslError> QgsAuthConfigSslServer::sslIgnoredErrors() const

‎src/core/auth/qgsauthmethodregistry.cpp‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ QWidget *QgsAuthMethodRegistry::editWidget( const QString &authMethodKey, QWidge
324324
return editFactory( parent );
325325
}
326326

327-
#if QT_VERSION >= 0x050000
328327
QFunctionPointer QgsAuthMethodRegistry::function( QString const & authMethodKey,
329328
QString const & functionName )
330329
{
@@ -342,25 +341,6 @@ QFunctionPointer QgsAuthMethodRegistry::function( QString const & authMethodKey,
342341
return 0;
343342
}
344343
}
345-
#else
346-
void *QgsAuthMethodRegistry::function( QString const & authMethodKey,
347-
QString const & functionName )
348-
{
349-
QLibrary myLib( library( authMethodKey ) );
350-
351-
QgsDebugMsg( "Library name is " + myLib.fileName() );
352-
353-
if ( myLib.load() )
354-
{
355-
return myLib.resolve( functionName.toLatin1().data() );
356-
}
357-
else
358-
{
359-
QgsDebugMsg( "Cannot load library: " + myLib.errorString() );
360-
return nullptr;
361-
}
362-
}
363-
#endif
364344

365345
QLibrary *QgsAuthMethodRegistry::authMethodLibrary( const QString &authMethodKey ) const
366346
{

‎src/core/auth/qgsauthmethodregistry.h‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,13 @@ class CORE_EXPORT QgsAuthMethodRegistry
7676
*/
7777
QWidget *editWidget( const QString & authMethodKey, QWidget * parent = nullptr );
7878

79-
#if QT_VERSION >= 0x050000
80-
8179
/** Get pointer to auth method function
8280
@param authMethodKey identificator of the auth method
8381
@param functionName name of function
8482
@return pointer to function or nullptr on error
8583
*/
8684
QFunctionPointer function( const QString & authMethodKey,
8785
const QString & functionName );
88-
#else
89-
90-
/** Get pointer to auth method function
91-
@param authMethodKey identificator of the auth method
92-
@param functionName name of function
93-
@return pointer to function or nullptr on error
94-
*/
95-
void *function( const QString & authMethodKey,
96-
const QString & functionName );
97-
#endif
9886

9987
//! Return the library object associated with an auth method key
10088
QLibrary *authMethodLibrary( const QString & authMethodKey ) const;

0 commit comments

Comments
 (0)