summaryrefslogtreecommitdiff
path: root/Userland/Applications/HexEditor/GoToOffsetDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/HexEditor/GoToOffsetDialog.cpp')
-rw-r--r--Userland/Applications/HexEditor/GoToOffsetDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/HexEditor/GoToOffsetDialog.cpp b/Userland/Applications/HexEditor/GoToOffsetDialog.cpp
index f24428b14e..d22f861b23 100644
--- a/Userland/Applications/HexEditor/GoToOffsetDialog.cpp
+++ b/Userland/Applications/HexEditor/GoToOffsetDialog.cpp
@@ -126,9 +126,9 @@ GoToOffsetDialog::GoToOffsetDialog()
m_text_editor->on_change = [this]() {
auto text = m_text_editor->text();
- if (text.starts_with("0x")) {
+ if (text.starts_with("0x"sv)) {
m_offset_type_box->set_selected_index(1);
- m_text_editor->set_text(text.replace("0x", "", ReplaceMode::FirstOnly));
+ m_text_editor->set_text(text.replace("0x"sv, ""sv, ReplaceMode::FirstOnly));
}
update_statusbar();
};