Skip to content
Permalink
Browse files

Back to unique_ptr

  • Loading branch information
wonder-sk committed Jun 21, 2017
1 parent 415d3e9 commit 146683f586309053c340e2b0f4577b6959897225
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/layertree/qgslayertreemodellegendnode.cpp
@@ -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 )

0 comments on commit 146683f

Please sign in to comment.
You can’t perform that action at this time.