[libcalamares] Add convenience for building macro-expanders
This commit is contained in:
parent
010ab08384
commit
273941f451
@ -48,6 +48,14 @@ public:
|
|||||||
virtual ~DictionaryExpander() override;
|
virtual ~DictionaryExpander() override;
|
||||||
|
|
||||||
void insert( const QString& key, const QString& value );
|
void insert( const QString& key, const QString& value );
|
||||||
|
/** @brief As insert(), but supports method-chaining.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
DictionaryExpander& add( const QString& key, const QString& value )
|
||||||
|
{
|
||||||
|
insert( key, value );
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
void clearErrors();
|
void clearErrors();
|
||||||
bool hasErrors() const;
|
bool hasErrors() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user