Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix: replace deprecated QString::SkipEmptyParts with Qt::SkipEmptyParts
Signed-off-by: t0b3 <thomas.bettler@gmail.com>
- Loading branch information
Showing
with
12 additions
and
0 deletions.
-
+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 ); |
|
|