Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed May 3, 2020
1 parent 59b18b8 commit a14f665
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/server/wms/test_qgsserver_wms_restorer.cpp
Expand Up @@ -71,18 +71,18 @@ void TestQgsServerWmsRestorer::restorer_layer()
QgsVectorLayer *vl = nullptr;
for ( QgsMapLayer *l : context.layers() )
{
if ( l->name().compare(name) == 0 )
if ( l->name().compare( name ) == 0 )
vl = qobject_cast<QgsVectorLayer *>( l );
}

QCOMPARE( vl->name(), name );
const int opacity = vl->opacity();
const double opacity = vl->opacity();

// call restorer
{
// destructor is called once out of scope
std::unique_ptr<QgsWms::QgsWmsRestorer> restorer;
restorer.reset( new QgsWms::QgsWmsRestorer(context) );
restorer.reset( new QgsWms::QgsWmsRestorer( context ) );

const QString new_name = "new_name";
vl->setName( new_name );
Expand Down

0 comments on commit a14f665

Please sign in to comment.