mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
LibCore: Move Stream-based file into the Core
namespace
This commit is contained in:
parent
a96339b72b
commit
606a3982f3
218 changed files with 748 additions and 643 deletions
|
@ -63,7 +63,7 @@ ErrorOr<void> HexEditor::open_new_file(size_t size)
|
|||
return {};
|
||||
}
|
||||
|
||||
void HexEditor::open_file(NonnullOwnPtr<Core::Stream::File> file)
|
||||
void HexEditor::open_file(NonnullOwnPtr<Core::File> file)
|
||||
{
|
||||
m_document = HexDocumentFile::create(move(file)).release_value_but_fixme_should_propagate_errors();
|
||||
set_content_length(m_document->size());
|
||||
|
@ -136,7 +136,7 @@ void HexEditor::set_selection(size_t position, size_t length)
|
|||
update_status();
|
||||
}
|
||||
|
||||
ErrorOr<void> HexEditor::save_as(NonnullOwnPtr<Core::Stream::File> new_file)
|
||||
ErrorOr<void> HexEditor::save_as(NonnullOwnPtr<Core::File> new_file)
|
||||
{
|
||||
if (m_document->type() == HexDocument::Type::File) {
|
||||
auto& file_document = static_cast<HexDocumentFile&>(*m_document);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue