mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 18:35:37 -04:00
Port away from most cases of Q_FOREACH to C++11 ranged for loop.
In order to avoid deep copies, Qt containers over which we iterate must be const The remaining unported cases require qAsConst (Qt 5.7) or std::as_const (C++17)
This commit is contained in:
parent
b0122f25e5
commit
9f0ca042fe
35 changed files with 105 additions and 92 deletions
|
@ -92,10 +92,10 @@ KeyboardPage::init()
|
|||
|
||||
if ( process.waitForFinished() )
|
||||
{
|
||||
QStringList list = QString( process.readAll() )
|
||||
const QStringList list = QString( process.readAll() )
|
||||
.split( "\n", QString::SkipEmptyParts );
|
||||
|
||||
foreach( QString line, list )
|
||||
for ( QString line : list )
|
||||
{
|
||||
line = line.trimmed();
|
||||
if ( !line.startsWith( "xkb_symbols" ) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue