Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
QChar(int) constructor is ambiguous
  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 31, 2021
1 parent 52177cb commit a135aee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/auth/qgsauthmanager.cpp
Expand Up @@ -876,14 +876,14 @@ const QString QgsAuthManager::uniqueConfigId() const
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
id += ( '0' + qrand() % 10 );
#else
id += ( '0' + QRandomGenerator::system()->generate() % 10 );
id += static_cast<char>( '0' + QRandomGenerator::system()->generate() % 10 );
#endif
break;
case 1:
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
id += ( 'a' + qrand() % 26 );
#else
id += ( 'a' + QRandomGenerator::system()->generate() % 26 );
id += static_cast<char>( 'a' + QRandomGenerator::system()->generate() % 26 );
#endif
break;
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/expression/qgsexpressionfunction.cpp
Expand Up @@ -669,7 +669,7 @@ static QVariant fcnAggregate( const QVariantList &values, const QgsExpressionCon
if ( !isStatic )
{
cacheKey = QStringLiteral( "aggfcn:%1:%2:%3:%4:%5%6:%7" ).arg( vl->id(), QString::number( aggregate ), subExpression, parameters.filter,
QString::number( context->feature().id() ), QString( qHash( context->feature() ) ), orderBy );
QString::number( context->feature().id() ), QString::number( qHash( context->feature() ) ), orderBy );
}
else
{
Expand Down Expand Up @@ -914,7 +914,7 @@ static QVariant fcnAggregateGeneric( QgsAggregateCalculator::Aggregate aggregate
if ( !isStatic )
{
cacheKey = QStringLiteral( "agg:%1:%2:%3:%4:%5%6:%7" ).arg( vl->id(), QString::number( aggregate ), subExpression, parameters.filter,
QString::number( context->feature().id() ), QString( qHash( context->feature() ) ), orderBy );
QString::number( context->feature().id() ), QString::number( qHash( context->feature() ) ), orderBy );
}
else
{
Expand Down

0 comments on commit a135aee

Please sign in to comment.