Replace occurrences of CVariant::toCVariant() with CVariant::from()

This commit is contained in:
Roland Winklmeier
2015-05-30 00:11:22 +02:00
parent 28d2561a48
commit e4f2c9e88a
49 changed files with 78 additions and 87 deletions

View File

@@ -149,7 +149,7 @@ namespace BlackMisc
bool isEmpty() const { return this->m_values.isEmpty(); }
//! Value
CVariant value(const CPropertyIndex &index) const { return this->m_values.value(index).toCVariant(); }
CVariant value(const CPropertyIndex &index) const { return CVariant::from(this->m_values.value(index)); }
//! Set value
void value(const CPropertyIndex &index, const CVariant &value) { this->m_values.value(index, value); }
@@ -252,7 +252,7 @@ namespace BlackMisc
const auto &map = indexMap.map();
for (auto it = map.begin(); it != map.end(); ++it)
{
const CVariant value = it.value().toCVariant();
const CVariant value = it.value();
const CPropertyIndex index = it.key();
if (skipEqualValues)
{