mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:27:35 +00:00
HexEditor: Replace DeprecatedString in FindDialog
This commit is contained in:
parent
f38cf0ca18
commit
81afa029ac
3 changed files with 16 additions and 15 deletions
|
@ -7,6 +7,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Result.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibGUI/Dialog.h>
|
||||
|
||||
enum OptionId {
|
||||
|
@ -19,12 +20,12 @@ class FindDialog : public GUI::Dialog {
|
|||
C_OBJECT(FindDialog);
|
||||
|
||||
public:
|
||||
static ExecResult show(GUI::Window* parent_window, DeprecatedString& out_tex, ByteBuffer& out_buffer, bool& find_all);
|
||||
static ExecResult show(GUI::Window* parent_window, String& out_tex, ByteBuffer& out_buffer, bool& find_all);
|
||||
|
||||
private:
|
||||
Result<ByteBuffer, DeprecatedString> process_input(DeprecatedString text_value, OptionId opt);
|
||||
Result<ByteBuffer, String> process_input(String text_value, OptionId opt);
|
||||
|
||||
DeprecatedString text_value() const { return m_text_value; }
|
||||
String text_value() const { return m_text_value; }
|
||||
OptionId selected_option() const { return m_selected_option; }
|
||||
bool find_all() const { return m_find_all; }
|
||||
|
||||
|
@ -37,6 +38,6 @@ private:
|
|||
RefPtr<GUI::Button> m_cancel_button;
|
||||
|
||||
bool m_find_all { false };
|
||||
DeprecatedString m_text_value;
|
||||
String m_text_value;
|
||||
OptionId m_selected_option { OPTION_INVALID };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue