refs #247 CPropertyIndexVariantMap::addValue needs a QVariant overload to avoid selecting the template overload which would create a variant containing a variant.

This commit is contained in:
Mathew Sutcliffe
2014-12-07 17:04:28 +00:00
parent dae235881c
commit 22f3943064

View File

@@ -52,6 +52,9 @@ namespace BlackMisc
//! Add a value
void addValue(const CPropertyIndex &index, const QVariant &value);
//! Add a value
void addValue(const CPropertyIndex &index, const QVariant &value) { this->addValue(index, CVariant(value)); }
//! Add QString as literal, disambiguate as I want to add QString
void addValue(const CPropertyIndex &index, const char *str);