Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed May 13, 2020
1 parent 306065e commit 0772591
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/src/core/testqgslegendrenderer.cpp
Expand Up @@ -101,10 +101,8 @@ static QJsonObject _renderJsonLegend( QgsLayerTreeModel *legendModel, const QgsL
{
QgsLegendRenderer legendRenderer( legendModel, settings );

QJsonObject json;
QgsRenderContext context;
legendRenderer.exportLegendToJson( context, json );
return json;
return legendRenderer.exportLegendToJson( context );
}

static bool _verifyImage( const QString &testName, QString &report, int diff = 30 )
Expand Down

0 comments on commit 0772591

Please sign in to comment.