Skip to content
Permalink
Browse files

fix: replace deprecated QString::SkipEmptyParts with Qt::SkipEmptyParts

Signed-off-by: t0b3 <thomas.bettler@gmail.com>
  • Loading branch information
t0b3 authored and nyalldawson committed Mar 21, 2021
1 parent 6f75dcb commit eaa2d74a4c358c432a11622f61fbeea65cf3ce06
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/providers/oracle/qgsoracletablecache.cpp
@@ -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 );

0 comments on commit eaa2d74

Please sign in to comment.