mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
Replace occurrences of CVariant::toCVariant() with CVariant::from()
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user