[libcalamares] Call delegated constructor

This commit is contained in:
Adriaan de Groot 2020-02-11 16:39:39 +01:00
parent df5a0d25bc
commit b4b1bf5de2

View File

@ -25,18 +25,14 @@ namespace Locale
{
Label::Label( QObject* parent )
: QObject( parent )
, m_locale( QLocale() )
: Label( QString(), LabelFormat::IfNeededWithCountry, parent )
{
m_localeId = m_locale.name();
setLabels( QString(), LabelFormat::IfNeededWithCountry );
}
Label::Label( const QString& locale, LabelFormat format, QObject* parent )
: QObject( parent )
, m_locale( Label::getLocale( locale ) )
, m_localeId( locale )
, m_localeId( locale.isEmpty() ? m_locale.name() : locale )
{
setLabels( locale, format );