i18n: drop superfluous QObject* parent

These additional pointers were introduced for translations,
and needed their own tricks to get lupdate to recognize the
strings. Using QCoreApplication::translate() removes the
need to a QObject to provide context. Drop the now-unneeded
parameters.
This commit is contained in:
Adriaan de Groot 2018-02-07 17:12:49 +01:00
parent c71385e93f
commit d27675d660
10 changed files with 19 additions and 20 deletions

View file

@ -98,7 +98,7 @@ CommandList::~CommandList()
{
}
Calamares::JobResult CommandList::run( const QObject* parent )
Calamares::JobResult CommandList::run()
{
System::RunLocation location = m_doChroot ? System::RunLocation::RunInTarget : System::RunLocation::RunInHost;
@ -139,7 +139,7 @@ Calamares::JobResult CommandList::run( const QObject* parent )
if ( suppress_result )
cDebug() << "Error code" << r.getExitCode() << "ignored by CommandList configuration.";
else
return r.explainProcess( parent, processed_cmd, timeout );
return r.explainProcess( processed_cmd, timeout );
}
}