Skip to content
Permalink
Browse files

Replace pointer by value

  • Loading branch information
pblottiere committed May 2, 2020
1 parent a14f665 commit 56077cf780ddbac42f2ec46a560a5cc8b6cd601c
Showing with 5 additions and 3 deletions.
  1. +3 −2 src/server/services/wms/qgswmsrestorer.cpp
  2. +2 −1 src/server/services/wms/qgswmsrestorer.h
@@ -136,9 +136,10 @@ QgsLayerRestorer::~QgsLayerRestorer()
}
}

namespace QgsWms {
namespace QgsWms
{
QgsWmsRestorer::QgsWmsRestorer( const QgsWmsRenderContext &context )
: mLayerRestorer( context.layers() )
{
mLayerRestorer.reset( new QgsLayerRestorer( context.layers()) );
}
}
@@ -67,6 +67,7 @@ class QgsLayerRestorer

namespace QgsWms
{

/**
* \ingroup server
* RAII class to restore the rendering context configuration on destruction
@@ -89,7 +90,7 @@ namespace QgsWms

private:

std::unique_ptr<QgsLayerRestorer> mLayerRestorer;
QgsLayerRestorer mLayerRestorer;
};
};

0 comments on commit 56077cf

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