Skip to content

Commit

Permalink
typo and as_const
Browse files Browse the repository at this point in the history
(cherry-picked from 53c7dd3)
  • Loading branch information
signedav committed Dec 6, 2018
1 parent d3d5d7e commit a4adbe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/main.cpp
Expand Up @@ -432,7 +432,7 @@ APP_EXPORT
#endif
int main( int argc, char *argv[] )
{
//log messages written before creating QgsApplicatoin
//log messages written before creating QgsApplication
QStringList preApplicationLogMessages;

#ifdef Q_OS_MACX
Expand Down Expand Up @@ -975,8 +975,8 @@ int main( int argc, char *argv[] )

QgsApplication myApp( argc, argv, myUseGuiFlag );

//write the log messages written before creating QgsApplicatoin
for ( QString const &preApplicationLogMessage : preApplicationLogMessages )
//write the log messages written before creating QgsApplication
for ( const QString &preApplicationLogMessage : qgis::as_const( preApplicationLogMessages ) )
QgsMessageLog::logMessage( preApplicationLogMessage );

// Settings migration is only supported on the default profile for now.
Expand Down

0 comments on commit a4adbe9

Please sign in to comment.