[libcalamaresui] Apply coding style to modulesystem/
This commit is contained in:
parent
6224d6605b
commit
1b6aed8c40
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user