1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:57:44 +00:00

HexEditor: Prefer ErrorOr to Result in FindDialog

This commit is contained in:
Tim Ledbetter 2024-02-07 22:21:25 +00:00 committed by Jelle Raaijmakers
parent a42cf020ea
commit b330d83be4
2 changed files with 9 additions and 17 deletions

View file

@ -25,7 +25,7 @@ public:
static ErrorOr<NonnullRefPtr<FindDialog>> try_create();
private:
Result<ByteBuffer, String> process_input(String text_value, OptionId opt);
static ErrorOr<ByteBuffer> process_input(StringView text_value, OptionId opt);
String text_value() const { return m_text_value; }
OptionId selected_option() const { return m_selected_option; }