1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:07:35 +00:00

HexEditor: Use Array in FindDialog's options

This commit is contained in:
kleines Filmröllchen 2022-01-27 13:10:04 +01:00 committed by Andreas Kling
parent 1a8c8d2383
commit cab6384966

View file

@ -5,9 +5,9 @@
*/ */
#include "FindDialog.h" #include "FindDialog.h"
#include <AK/Array.h>
#include <AK/Hex.h> #include <AK/Hex.h>
#include <AK/String.h> #include <AK/String.h>
#include <AK/Vector.h>
#include <Applications/HexEditor/FindDialogGML.h> #include <Applications/HexEditor/FindDialogGML.h>
#include <LibGUI/BoxLayout.h> #include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h> #include <LibGUI/Button.h>
@ -23,9 +23,11 @@ struct Option {
bool default_action; bool default_action;
}; };
static const Vector<Option> options = { static const Array<Option, 2> options = {
{ "ASCII String", OPTION_ASCII_STRING, true, true }, {
{ "Hex value", OPTION_HEX_VALUE, true, false }, { "ASCII String", OPTION_ASCII_STRING, true, true },
{ "Hex value", OPTION_HEX_VALUE, true, false },
}
}; };
int FindDialog::show(GUI::Window* parent_window, String& out_text, ByteBuffer& out_buffer, bool& find_all) int FindDialog::show(GUI::Window* parent_window, String& out_text, ByteBuffer& out_buffer, bool& find_all)