mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
LibFileSystemAccessClient+Userland: Return file paths as ByteStrings
Where it was straightforward to do so, I've updated the users to also use ByteStrings for their file paths, but most of them have a temporary String::from_byte_string() call instead.
This commit is contained in:
parent
5a99a6afb4
commit
44ca55aaf8
23 changed files with 50 additions and 53 deletions
|
@ -596,13 +596,12 @@ void HexEditorWidget::update_title()
|
|||
window()->set_title(builder.to_byte_string());
|
||||
}
|
||||
|
||||
void HexEditorWidget::open_file(String const& filename, NonnullOwnPtr<Core::File> file)
|
||||
void HexEditorWidget::open_file(ByteString const& filename, NonnullOwnPtr<Core::File> file)
|
||||
{
|
||||
window()->set_modified(false);
|
||||
m_editor->open_file(move(file));
|
||||
auto filename_byte_string = filename.to_byte_string();
|
||||
set_path(filename_byte_string);
|
||||
GUI::Application::the()->set_most_recently_open_file(filename_byte_string);
|
||||
set_path(filename);
|
||||
GUI::Application::the()->set_most_recently_open_file(filename);
|
||||
}
|
||||
|
||||
bool HexEditorWidget::request_close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue