diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-31 15:05:29 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-31 17:43:54 +0100 |
commit | a4bd29828c18f10de2620cf74575f35814637611 (patch) | |
tree | cda1bcefd664f21a52b367f6a141f6d75390dbab /Userland/Libraries/LibGUI/TextEditor.cpp | |
parent | 634db1880956319bc2e4d74e68c75f4c8772ca0d (diff) | |
download | serenity-a4bd29828c18f10de2620cf74575f35814637611.zip |
LibGUI: Replace fprintf(stderr)/printf() with warnln()/dbgln()
Diffstat (limited to 'Userland/Libraries/LibGUI/TextEditor.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/TextEditor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibGUI/TextEditor.cpp b/Userland/Libraries/LibGUI/TextEditor.cpp index f8233f1e2e..aefaa338bd 100644 --- a/Userland/Libraries/LibGUI/TextEditor.cpp +++ b/Userland/Libraries/LibGUI/TextEditor.cpp @@ -1291,7 +1291,7 @@ void TextEditor::cut() if (!is_editable()) return; auto selected_text = this->selected_text(); - printf("Cut: \"%s\"\n", selected_text.characters()); + dbgln("Cut: \"{}\"", selected_text); Clipboard::the().set_plain_text(selected_text); delete_selection(); } @@ -1299,7 +1299,7 @@ void TextEditor::cut() void TextEditor::copy() { auto selected_text = this->selected_text(); - printf("Copy: \"%s\"\n", selected_text.characters()); + dbgln("Copy: \"{}\"\n", selected_text); Clipboard::the().set_plain_text(selected_text); } @@ -1313,7 +1313,7 @@ void TextEditor::paste() if (paste_text.is_empty()) return; - printf("Paste: \"%s\"\n", String::copy(paste_text).characters()); + dbgln("Paste: \"{}\"", String::copy(paste_text)); TemporaryChange change(m_automatic_indentation_enabled, false); insert_at_cursor_or_replace_selection(paste_text); |