Skip to content

Commit

Permalink
Back to unique_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Jun 21, 2017
1 parent 415d3e9 commit 146683f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/layertree/qgslayertreemodellegendnode.cpp
Expand Up @@ -228,11 +228,11 @@ QgsRenderContext *QgsLayerTreeModelLegendNode::createTemporaryRenderContext() co
return nullptr;

// setup temporary render context
QgsRenderContext *context = new QgsRenderContext;
std::unique_ptr<QgsRenderContext> context( new QgsRenderContext );
context->setScaleFactor( dpi / 25.4 );
context->setRendererScale( scale );
context->setMapToPixel( QgsMapToPixel( mupp ) );
return context;
return context.release();
}

void QgsSymbolLegendNode::checkAll( bool state )
Expand Down

0 comments on commit 146683f

Please sign in to comment.