mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
LibGUI: Replace fprintf(stderr)/printf() with warnln()/dbgln()
This commit is contained in:
parent
634db18809
commit
a4bd29828c
2 changed files with 4 additions and 4 deletions
|
@ -93,7 +93,7 @@ void FileSystemModel::Node::traverse_if_needed()
|
|||
Core::DirIterator di(full_path, m_model.should_show_dotfiles() ? Core::DirIterator::SkipParentAndBaseDir : Core::DirIterator::SkipDots);
|
||||
if (di.has_error()) {
|
||||
m_error = di.error();
|
||||
fprintf(stderr, "DirIterator: %s\n", di.error_string());
|
||||
warnln("DirIterator: {}", di.error_string());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue