| 26 | } |
| 27 | |
| 28 | static bool writeObject(File* file, const FileHelper::SerializationFunc& serialize, EFileFormat format) { |
| 29 | JsonFileWriter jfw(format); |
| 30 | |
| 31 | bool result = false; |
| 32 | if (jfw.beginObject()) { |
| 33 | result = serialize(&jfw); |
| 34 | jfw.endObject(); |
| 35 | } |
| 36 | jfw.save(file); |
| 37 | return result; |
| 38 | } |
| 39 | |
| 40 | virtual bool isReading() const override { return false; } |
| 41 |
nothing calls this directly
no test coverage detected