diff options
Diffstat (limited to 'Userland/Applications/HexEditor')
-rw-r--r-- | Userland/Applications/HexEditor/HexEditor.cpp | 5 | ||||
-rw-r--r-- | Userland/Applications/HexEditor/HexEditorWidget.cpp | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/Userland/Applications/HexEditor/HexEditor.cpp b/Userland/Applications/HexEditor/HexEditor.cpp index 31177674e3..021eaac965 100644 --- a/Userland/Applications/HexEditor/HexEditor.cpp +++ b/Userland/Applications/HexEditor/HexEditor.cpp @@ -563,11 +563,6 @@ int HexEditor::find_and_highlight(ByteBuffer& needle, int start) if (m_buffer.is_empty()) return -1; - if (needle.is_null()) { - dbgln("needle is null"); - return -1; - } - auto raw_offset = memmem(m_buffer.data() + start, m_buffer.size(), needle.data(), needle.size()); if (raw_offset == NULL) return -1; diff --git a/Userland/Applications/HexEditor/HexEditorWidget.cpp b/Userland/Applications/HexEditor/HexEditorWidget.cpp index b328e8533c..2be3aed1ce 100644 --- a/Userland/Applications/HexEditor/HexEditorWidget.cpp +++ b/Userland/Applications/HexEditor/HexEditorWidget.cpp @@ -189,7 +189,7 @@ void HexEditorWidget::initialize_menubar(GUI::Menubar& menubar) })); edit_menu.add_action(GUI::Action::create("Find &Next", { Mod_None, Key_F3 }, Gfx::Bitmap::load_from_file("/res/icons/16x16/find-next.png"), [&](const GUI::Action&) { - if (m_search_text.is_empty() || m_search_buffer.is_empty() || m_search_buffer.is_null()) { + if (m_search_text.is_empty() || m_search_buffer.is_empty()) { GUI::MessageBox::show(window(), "Nothing to search for", "Not found", GUI::MessageBox::Type::Warning); return; } |