Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Nov 22, 2021
1 parent 00627c7 commit 85791c6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/src/core/testqgsvectortileutils.cpp
Expand Up @@ -33,7 +33,6 @@ class TestQgsVectorTileUtils : public QObject
TestQgsVectorTileUtils() = default;

private:
QString mReport;

private slots:
void initTestCase();// will be called before the first testfunction is executed.
Expand All @@ -50,21 +49,10 @@ void TestQgsVectorTileUtils::initTestCase()
// init QGIS's paths - true means that all path will be inited from prefix
QgsApplication::init();
QgsApplication::initQgis();
QgsApplication::showSettings();
mReport += QLatin1String( "<h1>Vector Tile Utils Tests</h1>\n" );
}

void TestQgsVectorTileUtils::cleanupTestCase()
{
const QString myReportFile = QDir::tempPath() + "/qgistest.html";
QFile myFile( myReportFile );
if ( myFile.open( QIODevice::WriteOnly | QIODevice::Append ) )
{
QTextStream myQTextStream( &myFile );
myQTextStream << mReport;
myFile.close();
}

QgsApplication::exitQgis();
}

Expand Down

0 comments on commit 85791c6

Please sign in to comment.