Skip to content

Commit

Permalink
[spatialite] Fix compilation against qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Jul 18, 2021
1 parent 2e6b93b commit 58497b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Expand Up @@ -961,8 +961,8 @@ void QgsSpatiaLiteProvider::fetchConstraints()
const QChar delimiter { field.at( 0 ) };
if ( delimiter == '"' || delimiter == '`' )
{
const int start { field.indexOf( delimiter ) + 1};
const int end { field.indexOf( delimiter, start ) };
const int start = field.indexOf( delimiter ) + 1;
const int end = field.indexOf( delimiter, start );
fieldName = field.mid( start, end - start );
definition = field.mid( end + 1 );
}
Expand Down

0 comments on commit 58497b9

Please sign in to comment.