Commit ccf1c6fc authored by luyikei's avatar luyikei

MainWindow: Use const lvalue renference if possible

parent 63718973
......@@ -857,8 +857,8 @@ MainWindow::updateRecentProjects()
for ( const auto& var : Core::instance()->recentProjects()->toVariant().toList() )
{
const auto& m = var.toMap();
auto name = m["name"].toString();
auto file = m["file"].toString();
const auto& name = m["name"].toString();
const auto& file = m["file"].toString();
auto action = menu->addAction( QString( "%1 - %2" )
.arg( name )
.arg( file )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment