@@ -50,12 +50,9 @@ void TestQgsVectorAnalyzer::initTestCase()
50
50
// Runs once before any tests are run
51
51
//
52
52
// init QGIS's paths - true means that all path will be inited from prefix
53
- QString qgisPath = QCoreApplication::applicationDirPath ();
54
- QgsApplication::init ( INSTALL_PREFIX );
55
- QgsApplication::initQgis ( );
53
+ QgsApplication::init ();
54
+ QgsApplication::initQgis ();
56
55
QgsApplication::showSettings ();
57
- // Instantiate the plugin directory so that providers are loaded
58
- QgsProviderRegistry::instance ( QgsApplication::pluginPath () );
59
56
60
57
// create some objects that will be used in all tests...
61
58
// create a map layer that will be used in all tests...
@@ -91,7 +88,6 @@ void TestQgsVectorAnalyzer::cleanup()
91
88
{
92
89
93
90
}
94
-
95
91
void TestQgsVectorAnalyzer::singleToMulti ( )
96
92
{
97
93
@@ -116,9 +112,7 @@ void TestQgsVectorAnalyzer::simplifyGeometry( )
116
112
{
117
113
QString myTmpDir = QDir::tempPath () + QDir::separator () ;
118
114
QString myFileName = myTmpDir + " simplify_layer.shp" ;
119
- QVERIFY ( mAnalyzer .simplify ( mpLineLayer,
120
- myFileName,
121
- 1.0 ) );
115
+ QVERIFY ( mAnalyzer .simplify ( mpLineLayer, myFileName, 1.0 ) );
122
116
}
123
117
124
118
void TestQgsVectorAnalyzer::polygonCentroids ( )
@@ -137,4 +131,3 @@ void TestQgsVectorAnalyzer::layerExtent( )
137
131
138
132
QTEST_MAIN ( TestQgsVectorAnalyzer )
139
133
#include " moc_testqgsvectoranalyzer.cxx"
140
-
0 commit comments