Everywhere: clean up getAttribute conversions

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-26 18:02:24 +01:00
parent 2b1aec0041
commit 2b6e73c29d
17 changed files with 44 additions and 46 deletions

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;
}