Skip to content

Commit 199af26

Browse files
committed
Fix some warnings
1 parent a34c443 commit 199af26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/processing/qgsprocessingalgorithm.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ bool QgsProcessingAlgorithm::prepare( const QVariantMap &parameters, QgsProcessi
420420

421421
QVariantMap QgsProcessingAlgorithm::runPrepared( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
422422
{
423-
Q_ASSERT_X( mHasPrepared, "QgsProcessingAlgorithm::runPrepared", QString( "prepare() was not called for the algorithm instance %1" ).arg( name() ).toLatin1() );
423+
Q_ASSERT_X( mHasPrepared, "QgsProcessingAlgorithm::runPrepared", QStringLiteral( "prepare() was not called for the algorithm instance %1" ).arg( name() ).toLatin1() );
424424
Q_ASSERT_X( !mHasExecuted, "QgsProcessingAlgorithm::runPrepared", "runPrepared() was already called for this algorithm instance" );
425425

426426
// Hey kids, let's all be thread safe! It's the fun thing to do!
@@ -477,7 +477,7 @@ QVariantMap QgsProcessingAlgorithm::runPrepared( const QVariantMap &parameters,
477477
QVariantMap QgsProcessingAlgorithm::postProcess( QgsProcessingContext &context, QgsProcessingFeedback *feedback )
478478
{
479479
Q_ASSERT_X( QThread::currentThread() == context.temporaryLayerStore()->thread(), "QgsProcessingAlgorithm::postProcess", "postProcess() must be called from the same thread the context was created in" );
480-
Q_ASSERT_X( mHasExecuted, "QgsProcessingAlgorithm::postProcess", QString( "algorithm instance %1 was not executed" ).arg( name() ).toLatin1() );
480+
Q_ASSERT_X( mHasExecuted, "QgsProcessingAlgorithm::postProcess", QStringLiteral( "algorithm instance %1 was not executed" ).arg( name() ).toLatin1() );
481481
Q_ASSERT_X( !mHasPostProcessed, "QgsProcessingAlgorithm::postProcess", "postProcess() was already called for this algorithm instance" );
482482

483483
if ( mLocalContext )
@@ -726,7 +726,7 @@ QVariantMap QgsProcessingFeatureBasedAlgorithm::processAlgorithm( const QVariant
726726
QgsExpressionContext prevContext = context.expressionContext();
727727
QgsExpressionContext algContext = prevContext;
728728

729-
algContext.appendScopes( createExpressionContext( parameters, context, dynamic_cast< QgsProcessingFeatureSource * >( mSource.get() ) ).takeScopes() );
729+
algContext.appendScopes( createExpressionContext( parameters, context, mSource.get() ).takeScopes() );
730730
context.setExpressionContext( algContext );
731731

732732
long count = mSource->featureCount();

0 commit comments

Comments
 (0)