| 177 | } |
| 178 | |
| 179 | void SettingsManager::mergeAttributes(pugi::xml_node _nodeTarget, pugi::xml_node _nodeSource) |
| 180 | { |
| 181 | for (pugi::xml_node::attribute_iterator attribute = _nodeSource.attributes_begin(); |
| 182 | attribute != _nodeSource.attributes_end(); |
| 183 | attribute++) |
| 184 | { |
| 185 | pugi::xml_attribute attributeNode = _nodeTarget.attribute((*attribute).name()); |
| 186 | if (attributeNode.empty()) |
| 187 | attributeNode = _nodeTarget.append_attribute((*attribute).name()); |
| 188 | attributeNode.set_value((*attribute).value()); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | bool SettingsManager::loadUserSettingsFile(std::string_view _fileName) |
| 193 | { |
nothing calls this directly
no test coverage detected