[locale] Tidy up types
- use JobList typedef where possible - remove unused forward type definitions
This commit is contained in:
parent
2034dd62a4
commit
1df6454cfe
@ -301,7 +301,7 @@ LocalePage::prettyStatus() const
|
||||
}
|
||||
|
||||
|
||||
QList< Calamares::job_ptr >
|
||||
Calamares::JobList
|
||||
LocalePage::createJobs()
|
||||
{
|
||||
QList< Calamares::job_ptr > list;
|
||||
|
@ -142,7 +142,7 @@ LocaleViewStep::isAtEnd() const
|
||||
}
|
||||
|
||||
|
||||
QList< Calamares::job_ptr >
|
||||
Calamares::JobList
|
||||
LocaleViewStep::jobs() const
|
||||
{
|
||||
return m_jobs;
|
||||
@ -163,12 +163,9 @@ LocaleViewStep::onActivate()
|
||||
void
|
||||
LocaleViewStep::onLeave()
|
||||
{
|
||||
m_jobs.clear();
|
||||
|
||||
if ( m_actualWidget )
|
||||
{
|
||||
m_jobs.append( m_actualWidget->createJobs() );
|
||||
|
||||
m_jobs = m_actualWidget->createJobs();
|
||||
m_prettyStatus = m_actualWidget->prettyStatus();
|
||||
|
||||
auto map = m_actualWidget->localesMap();
|
||||
@ -182,6 +179,7 @@ LocaleViewStep::onLeave()
|
||||
}
|
||||
else
|
||||
{
|
||||
m_jobs.clear();
|
||||
Calamares::JobQueue::instance()->globalStorage()->remove( "localeConf" );
|
||||
}
|
||||
}
|
||||
|
@ -33,7 +33,6 @@
|
||||
#include <memory>
|
||||
|
||||
class LocalePage;
|
||||
class WaitingWidget;
|
||||
|
||||
class PLUGINDLLEXPORT LocaleViewStep : public Calamares::ViewStep
|
||||
{
|
||||
@ -54,7 +53,7 @@ public:
|
||||
bool isAtBeginning() const override;
|
||||
bool isAtEnd() const override;
|
||||
|
||||
QList< Calamares::job_ptr > jobs() const override;
|
||||
Calamares::JobList jobs() const override;
|
||||
|
||||
void onActivate() override;
|
||||
void onLeave() override;
|
||||
@ -78,7 +77,7 @@ private:
|
||||
CalamaresUtils::GeoIP::RegionZonePair m_startingTimezone;
|
||||
QString m_localeGenPath;
|
||||
|
||||
QList< Calamares::job_ptr > m_jobs;
|
||||
Calamares::JobList m_jobs;
|
||||
std::unique_ptr< CalamaresUtils::GeoIP::Handler > m_geoip;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user