From 53c7dd3a229c17a5b37b54c9df9053f82d736d5a Mon Sep 17 00:00:00 2001 From: signedav Date: Tue, 4 Dec 2018 12:17:16 +0100 Subject: [PATCH] typo and as_const --- src/app/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 252f460d122..12721e81788 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -430,7 +430,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 @@ -973,8 +973,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.