[libcalamaresui] Remove the special * operator for string-enums in branding

- This is a good example of being overly clever in C++
- the whole API with an enum requesting a specific string is a bit weird,
  although it makes sense from the 'might need more strings specified'
  point of view.
main
Adriaan de Groot 5 years ago
parent 7d8e54ba47
commit 62696a3a48

@ -209,6 +209,11 @@ public:
public slots:
QString string( StringEntry stringEntry ) const;
QString versionedName() const { return string( VersionedName ); }
QString productName() const { return string( ProductName ); }
QString shortProductName() const { return string( ShortProductName ); }
QString shortVersionedName() const { return string( ShortVersionedName ); }
QString styleString( StyleEntry styleEntry ) const;
QString imagePath( ImageEntry imageEntry ) const;
@ -249,13 +254,6 @@ private:
PanelSide m_navigationSide = PanelSide::Bottom;
};
template < typename U >
inline QString
operator*( U e )
{
return Branding::instance()->string( e );
}
} // namespace Calamares
#endif // BRANDING_H

Loading…
Cancel
Save