mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:17:45 +00:00
HexEditor: Create a function to initialize a HexDocumentFile
This function is made from what composed `set_file()` (which now calls the new function). It allows to create a `HexDocumentFile` without calling the hackish `set_file(move(m_file))`.
This commit is contained in:
parent
689b3c2c26
commit
3f932081ae
2 changed files with 8 additions and 2 deletions
|
@ -76,6 +76,8 @@ public:
|
|||
|
||||
private:
|
||||
explicit HexDocumentFile(NonnullOwnPtr<Core::Stream::File> file);
|
||||
ErrorOr<void> initialize_internal_state();
|
||||
|
||||
void ensure_position_in_buffer(size_t position);
|
||||
|
||||
NonnullOwnPtr<Core::Stream::File> m_file;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue