typo and as_const

This commit is contained in:
signedav 2018-12-04 12:17:16 +01:00
parent f3943f5877
commit 53c7dd3a22

View File

@ -430,7 +430,7 @@ APP_EXPORT
#endif #endif
int main( int argc, char *argv[] ) int main( int argc, char *argv[] )
{ {
//log messages written before creating QgsApplicatoin //log messages written before creating QgsApplication
QStringList preApplicationLogMessages; QStringList preApplicationLogMessages;
#ifdef Q_OS_MACX #ifdef Q_OS_MACX
@ -973,8 +973,8 @@ int main( int argc, char *argv[] )
QgsApplication myApp( argc, argv, myUseGuiFlag ); QgsApplication myApp( argc, argv, myUseGuiFlag );
//write the log messages written before creating QgsApplicatoin //write the log messages written before creating QgsApplication
for ( QString const &preApplicationLogMessage : preApplicationLogMessages ) for ( const QString &preApplicationLogMessage : qgis::as_const( preApplicationLogMessages ) )
QgsMessageLog::logMessage( preApplicationLogMessage ); QgsMessageLog::logMessage( preApplicationLogMessage );
// Settings migration is only supported on the default profile for now. // Settings migration is only supported on the default profile for now.