summaryrefslogtreecommitdiff
path: root/Applications/HexEditor
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-05 16:16:01 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-05 16:16:01 +0200
commit51146e30750141f5e604ef2df3ba4a721c0d7149 (patch)
treeb48fcce9ff067ab5ce04a4b9cfdbf4a77a54c9f4 /Applications/HexEditor
parent802f5411842db8c60373f89ce524b350c74bb6c5 (diff)
downloadserenity-51146e30750141f5e604ef2df3ba4a721c0d7149.zip
LibGUI: Make the Clipboard API deal in raw byte buffers a bit more
To open up for putting not just text/plain content on the clipboard, let's make the GUI::Clipboard API a bit more raw-data-friendly. :^)
Diffstat (limited to 'Applications/HexEditor')
-rw-r--r--Applications/HexEditor/HexEditor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Applications/HexEditor/HexEditor.cpp b/Applications/HexEditor/HexEditor.cpp
index 24985f0de3..fc041d47ad 100644
--- a/Applications/HexEditor/HexEditor.cpp
+++ b/Applications/HexEditor/HexEditor.cpp
@@ -139,7 +139,7 @@ bool HexEditor::copy_selected_hex_to_clipboard()
output_string_builder.appendf("%02X ", m_buffer.data()[i]);
}
- GUI::Clipboard::the().set_data(output_string_builder.to_string());
+ GUI::Clipboard::the().set_plain_text(output_string_builder.to_string());
return true;
}
@@ -153,7 +153,7 @@ bool HexEditor::copy_selected_text_to_clipboard()
output_string_builder.appendf("%c", isprint(m_buffer.data()[i]) ? m_buffer[i] : '.');
}
- GUI::Clipboard::the().set_data(output_string_builder.to_string());
+ GUI::Clipboard::the().set_plain_text(output_string_builder.to_string());
return true;
}
@@ -176,7 +176,7 @@ bool HexEditor::copy_selected_hex_to_clipboard_as_c_code()
}
output_string_builder.append("\n};\n");
- GUI::Clipboard::the().set_data(output_string_builder.to_string());
+ GUI::Clipboard::the().set_plain_text(output_string_builder.to_string());
return true;
}