MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / discardChanges

Method discardChanges

lib/vfs/imagesectorinterface.cc:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 }
52
53 void discardChanges() override
54 {
55 if (_reader)
56 _image = _reader->readImage();
57 else
58 {
59 _image = std::make_shared<Image>();
60 _image->addMissingSectors(*_diskLayout);
61 }
62 _changed = false;
63 }
64
65private:
66 std::shared_ptr<Image> _image;

Callers

nothing calls this directly

Calls 2

addMissingSectorsMethod · 0.80
readImageMethod · 0.45

Tested by

no test coverage detected