| 194 | } |
| 195 | |
| 196 | bool VfsXMLDocument::SaveFile(FileStream& stream) |
| 197 | { |
| 198 | // Clear any error from the last save, otherwise it will get reported |
| 199 | // for *this* call. |
| 200 | ClearError(); |
| 201 | VfsXMLPrinter printer(stream, false, 0); |
| 202 | PrettyXMLPrinter prettyPrinter(printer); |
| 203 | Print(&prettyPrinter); |
| 204 | return !Error(); |
| 205 | } |
| 206 | |
| 207 | bool VfsXMLDocument::SaveFile(const char* pFilename) |
| 208 | { |
no test coverage detected