Everywhere: clean up getAttribute conversions

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-05-09 15:54:57 +02:00
parent 492b8312b3
commit 6786af6ef9
17 changed files with 44 additions and 46 deletions
+2 -2
View File
@@ -791,10 +791,10 @@ void StringHasher::Restore(Base::XMLReader& reader)
clear();
reader.readElement("StringHasher");
_hashes->SaveAll = reader.getAttribute<long>("saveall") != 0L;
_hashes->Threshold = static_cast<int>(reader.getAttribute<long>("threshold"));
_hashes->Threshold = reader.getAttribute<int>("threshold");
bool newTag = false;
if (reader.hasAttribute("new") && reader.getAttribute<long>("new") > 0) {
if (reader.hasAttribute("new") && reader.getAttribute<bool>("new")) {
reader.readElement("StringHasher2");
newTag = true;
}