| 72 | } |
| 73 | |
| 74 | int32 GetIntFromXml(const xml_node& parent, const PUGIXML_CHAR* name, const int32 defaultValue) |
| 75 | { |
| 76 | const auto node = parent.child_value(name); |
| 77 | if (node) |
| 78 | { |
| 79 | XmlCharAsChar s(node); |
| 80 | int32 v; |
| 81 | if (!StringUtils::Parse(s.Str, &v)) |
| 82 | { |
| 83 | return v; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | return defaultValue; |
| 88 | } |
| 89 | |
| 90 | bool ProjectInfo::SaveProject() |
| 91 | { |
no test coverage detected