Skip to content

Commit 53c7dd3

Browse files
committed
typo and as_const
1 parent f3943f5 commit 53c7dd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/main.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ APP_EXPORT
430430
#endif
431431
int main( int argc, char *argv[] )
432432
{
433-
//log messages written before creating QgsApplicatoin
433+
//log messages written before creating QgsApplication
434434
QStringList preApplicationLogMessages;
435435

436436
#ifdef Q_OS_MACX
@@ -973,8 +973,8 @@ int main( int argc, char *argv[] )
973973

974974
QgsApplication myApp( argc, argv, myUseGuiFlag );
975975

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

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

0 commit comments

Comments
 (0)