@@ -344,12 +344,12 @@ static QgsMessageOutput *messageOutputViewer_()
344344 return new QgsMessageOutputConsole ();
345345}
346346
347- static void customSrsValidation_ ( QgsCoordinateReferenceSystem* srs )
347+ static void customSrsValidation_ ( QgsCoordinateReferenceSystem & srs )
348348{
349349 QgisApp::instance ()->emitCustomSrsValidation ( srs );
350350}
351351
352- void QgisApp::emitCustomSrsValidation ( QgsCoordinateReferenceSystem* srs )
352+ void QgisApp::emitCustomSrsValidation ( QgsCoordinateReferenceSystem & srs )
353353{
354354 emit customSrsValidation ( srs );
355355}
@@ -361,7 +361,7 @@ void QgisApp::emitCustomSrsValidation( QgsCoordinateReferenceSystem* srs )
361361 * - use project's CRS
362362 * - use predefined global CRS
363363 */
364- void QgisApp::validateSrs ( QgsCoordinateReferenceSystem* srs )
364+ void QgisApp::validateSrs ( QgsCoordinateReferenceSystem & srs )
365365{
366366 static QString authid = QString::null;
367367 QSettings mySettings;
@@ -372,9 +372,10 @@ void QgisApp::validateSrs( QgsCoordinateReferenceSystem* srs )
372372 // it in the ctor of the layer projection selector
373373
374374 QgsGenericProjectionSelector *mySelector = new QgsGenericProjectionSelector ();
375- mySelector->setMessage ( srs-> validationHint () ); // shows a generic message, if not specified
375+ mySelector->setMessage ( srs. validationHint () ); // shows a generic message, if not specified
376376 if ( authid.isNull () )
377377 authid = QgisApp::instance ()->mapCanvas ()->mapRenderer ()->destinationCrs ().authid ();
378+
378379 QgsCoordinateReferenceSystem defaultCrs;
379380 if ( defaultCrs.createFromOgcWmsCrs ( authid ) )
380381 {
@@ -389,7 +390,7 @@ void QgisApp::validateSrs( QgsCoordinateReferenceSystem* srs )
389390 {
390391 QgsDebugMsg ( " Layer srs set from dialog: " + QString::number ( mySelector->selectedCrsId () ) );
391392 authid = mySelector->selectedAuthId ();
392- srs-> createFromOgcWmsCrs ( mySelector->selectedAuthId () );
393+ srs. createFromOgcWmsCrs ( mySelector->selectedAuthId () );
393394 }
394395
395396 // QApplication::restoreOverrideCursor();
@@ -402,12 +403,12 @@ void QgisApp::validateSrs( QgsCoordinateReferenceSystem* srs )
402403 authid = QgisApp::instance ()->mapCanvas ()->mapRenderer ()->destinationCrs ().authid ();
403404 QgsDebugMsg ( " Layer srs set from project: " + authid );
404405 QgisApp::instance ()->statusBar ()->showMessage ( QObject::tr ( " CRS undefined - defaulting to project CRS" ) );
405- srs-> createFromOgcWmsCrs ( authid );
406+ srs. createFromOgcWmsCrs ( authid );
406407 }
407408 else // /Projections/defaultBehaviour==useGlobal
408409 {
409410 authid = mySettings.value ( " /Projections/layerDefaultCrs" , GEO_EPSG_CRS_AUTHID ).toString ();
410- srs-> createFromOgcWmsCrs ( authid );
411+ srs. createFromOgcWmsCrs ( authid );
411412 QgisApp::instance ()->statusBar ()->showMessage ( QObject::tr ( " CRS undefined - defaulting to default CRS: %1" ).arg ( authid ) );
412413 }
413414}
@@ -566,8 +567,8 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
566567 QgsMessageLog::logMessage ( tr ( " QGIS starting..." ) );
567568
568569 // set QGIS specific srs validation
569- connect ( this , SIGNAL ( customSrsValidation ( QgsCoordinateReferenceSystem * ) ),
570- this , SLOT ( validateSrs ( QgsCoordinateReferenceSystem * ) ) );
570+ connect ( this , SIGNAL ( customSrsValidation ( QgsCoordinateReferenceSystem& ) ),
571+ this , SLOT ( validateSrs ( QgsCoordinateReferenceSystem& ) ) );
571572 QgsCoordinateReferenceSystem::setCustomSrsValidation ( customSrsValidation_ );
572573
573574 // set graphical message output
@@ -7020,6 +7021,7 @@ void QgisApp::markDirty()
70207021 // notify the project that there was a change
70217022 QgsProject::instance ()->dirty ( true );
70227023}
7024+
70237025// changed from layerWasAdded to layersWereAdded in 1.8
70247026void QgisApp::layersWereAdded ( QList<QgsMapLayer *> theLayers )
70257027{
0 commit comments