[libcalamares] Avoid weak vtables in string-pair implementation
This commit is contained in:
parent
fc7f49b610
commit
94fe4d2fda
@ -79,5 +79,20 @@ CStringPair::~CStringPair()
|
|||||||
free( m_key );
|
free( m_key );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
QString
|
||||||
|
TZRegion::tr() const
|
||||||
|
{
|
||||||
|
// NOTE: context name must match what's used in zone-extractor.py
|
||||||
|
return QObject::tr( m_human, "tz_regions" );
|
||||||
|
}
|
||||||
|
|
||||||
|
QString
|
||||||
|
TZZone::tr() const
|
||||||
|
{
|
||||||
|
// NOTE: context name must match what's used in zone-extractor.py
|
||||||
|
return QObject::tr( m_human, "tz_names" );
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Locale
|
} // namespace Locale
|
||||||
} // namespace CalamaresUtils
|
} // namespace CalamaresUtils
|
||||||
|
@ -61,9 +61,7 @@ class TZRegion : public CStringPair
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using CStringPair::CStringPair;
|
using CStringPair::CStringPair;
|
||||||
|
QString tr() const override;
|
||||||
// NOTE: context name must match what's used in zone-extractor.py
|
|
||||||
QString tr() const override { return QObject::tr( m_human, "tz_regions" ); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @brief A pair of strings for specific timezone names (e.g. "New_York")
|
/// @brief A pair of strings for specific timezone names (e.g. "New_York")
|
||||||
@ -71,9 +69,7 @@ class TZZone : public CStringPair
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using CStringPair::CStringPair;
|
using CStringPair::CStringPair;
|
||||||
|
QString tr() const override;
|
||||||
// NOTE: context name must match what's used in zone-extractor.py
|
|
||||||
QString tr() const override { return QObject::tr( m_human, "tz_names" ); }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Locale
|
} // namespace Locale
|
||||||
|
Loading…
Reference in New Issue
Block a user