check if new value was inserted

This commit is contained in:
RickyRister 2026-08-10 22:14:29 -07:00
parent 9716f7f2c3
commit 56ebaed8a4
3 changed files with 14 additions and 3 deletions

View file

@ -76,10 +76,16 @@ QString LazyPropertiesHash::value(const QString &key) const
return properties.value(key);
}
void LazyPropertiesHash::insert(const QString &key, const QString &value)
bool LazyPropertiesHash::insert(const QString &key, const QString &value)
{
ensureMaterialized();
if (value == properties.value(key)) {
return false;
}
properties.insert(key, value);
return true;
}
const QHash<QString, QString> &LazyPropertiesHash::getProperties() const