Skip to content

Commit

Permalink
fix: replace deprecated QString::SkipEmptyParts with Qt::SkipEmptyParts
Browse files Browse the repository at this point in the history
Signed-off-by: t0b3 <thomas.bettler@gmail.com>
  • Loading branch information
t0b3 authored and nyalldawson committed Mar 21, 2021
1 parent 6f75dcb commit eaa2d74
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/providers/oracle/qgsoracletablecache.cpp
Expand Up @@ -219,14 +219,26 @@ bool QgsOracleTableCache::loadFromCache( const QString &connName, CacheFlags fla
layer.sql = QString::fromUtf8( ( const char * ) sqlite3_column_text( stmt, 4 ) );

QString pkCols = QString::fromUtf8( ( const char * ) sqlite3_column_text( stmt, 5 ) );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
layer.pkCols = pkCols.split( ",", QString::SkipEmptyParts );
#else
layer.pkCols = pkCols.split( ",", Qt::SkipEmptyParts );
#endif

QString geomTypes = QString::fromUtf8( ( const char * ) sqlite3_column_text( stmt, 6 ) );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
for ( QString geomType : geomTypes.split( ",", QString::SkipEmptyParts ) )
#else
for ( QString geomType : geomTypes.split( ",", Qt::SkipEmptyParts ) )
#endif
layer.types.append( static_cast<QgsWkbTypes::Type>( geomType.toInt() ) );

QString geomSrids = QString::fromUtf8( ( const char * ) sqlite3_column_text( stmt, 7 ) );
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
for ( QString geomSrid : geomSrids.split( ",", QString::SkipEmptyParts ) )
#else
for ( QString geomSrid : geomSrids.split( ",", Qt::SkipEmptyParts ) )
#endif
layer.srids.append( geomSrid.toInt() );

layers.append( layer );
Expand Down

0 comments on commit eaa2d74

Please sign in to comment.