mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +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
Notes:
sideshowbarker
2024-07-17 06:00:02 +09:00
Author: https://github.com/LucasChollet
Commit: 3f932081ae
Pull-request: https://github.com/SerenityOS/serenity/pull/17045
Reviewed-by: https://github.com/ADKaster ✅
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