[libcalamaresui] Apply coding style to modulesystem/

This commit is contained in:
Adriaan de Groot 2019-08-13 20:58:39 +02:00
parent 6224d6605b
commit 1b6aed8c40
2 changed files with 3 additions and 2 deletions

View File

@ -77,7 +77,9 @@ ProcessJobModule::initFrom( const QVariantMap& moduleDescriptor )
{ {
int sec = moduleDescriptor.value( "timeout" ).toInt(); int sec = moduleDescriptor.value( "timeout" ).toInt();
if ( sec < 0 ) if ( sec < 0 )
{
sec = 0; sec = 0;
}
m_secondsTimeout = std::chrono::seconds( sec ); m_secondsTimeout = std::chrono::seconds( sec );
} }

View File

@ -151,8 +151,7 @@ RequirementsChecker::reportProgress()
m_progressTimeouts++; m_progressTimeouts++;
QStringList remainingNames; QStringList remainingNames;
auto remaining = std::count_if( m_watchers.cbegin(), m_watchers.cend(), auto remaining = std::count_if( m_watchers.cbegin(), m_watchers.cend(), [&]( const Watcher* w ) {
[&]( const Watcher* w ) {
if ( w && !w->isFinished() ) if ( w && !w->isFinished() )
{ {
remainingNames << w->objectName(); remainingNames << w->objectName();