[netinstall] Code-style

This commit is contained in:
Adriaan de Groot 2020-02-18 17:37:58 +01:00
parent bc5aa1f837
commit d909b8119e

View File

@ -128,9 +128,9 @@ NetInstallViewStep::onLeave()
// Clear out existing operations for this module, going backwards: // Clear out existing operations for this module, going backwards:
// Sometimes we remove an item, and we don't want the index to // Sometimes we remove an item, and we don't want the index to
// fall off the end of the list. // fall off the end of the list.
for ( int index = packageOperations.length() - 1; 0 <= index ; index-- ) for ( int index = packageOperations.length() - 1; 0 <= index; index-- )
{ {
const QVariantMap op = packageOperations.at(index).toMap(); const QVariantMap op = packageOperations.at( index ).toMap();
if ( op.contains( "source" ) && op.value( "source" ).toString() == moduleInstanceKey().toString() ) if ( op.contains( "source" ) && op.value( "source" ).toString() == moduleInstanceKey().toString() )
{ {
cDebug() << Logger::SubEntry << "Removing existing operations for" << moduleInstanceKey(); cDebug() << Logger::SubEntry << "Removing existing operations for" << moduleInstanceKey();