1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

Everywhere: Replace a bundle of dbg with dbgln.

These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.Everything:

The modifications in this commit were automatically made using the
following command:

    find . -name '*.cpp' -exec sed -i -E 's/dbg\(\) << ("[^"{]*");/dbgln\(\1\);/' {} \;
This commit is contained in:
asynts 2021-01-09 18:51:44 +01:00 committed by Andreas Kling
parent 40b8e21115
commit 938e5c7719
95 changed files with 331 additions and 331 deletions

View file

@ -308,7 +308,7 @@ void AbstractView::mousemove_event(MouseEvent& event)
// Prevent this by just ignoring later drag initiations (until the current drag operation ends).
TemporaryChange dragging { m_is_dragging, true };
dbg() << "Initiate drag!";
dbgln("Initiate drag!");
auto drag_operation = DragOperation::construct();
drag_operation->set_mime_data(m_model->mime_data(m_selection));
@ -317,10 +317,10 @@ void AbstractView::mousemove_event(MouseEvent& event)
switch (outcome) {
case DragOperation::Outcome::Accepted:
dbg() << "Drag was accepted!";
dbgln("Drag was accepted!");
break;
case DragOperation::Outcome::Cancelled:
dbg() << "Drag was cancelled!";
dbgln("Drag was cancelled!");
break;
default:
ASSERT_NOT_REACHED();

View file

@ -192,7 +192,7 @@ void ColumnsView::push_column(const ModelIndex& parent_index)
}
// Add the new column.
dbg() << "Adding a new column";
dbgln("Adding a new column");
m_columns.append({ parent_index, 0 });
update_column_sizes();
update();
@ -278,7 +278,7 @@ void ColumnsView::model_did_update(unsigned flags)
AbstractView::model_did_update(flags);
// FIXME: Don't drop the columns on minor updates.
dbg() << "Model was updated; dropping columns :(";
dbgln("Model was updated; dropping columns :(");
m_columns.clear();
m_columns.append({ {}, 0 });

View file

@ -968,14 +968,14 @@ bool Widget::load_from_json(const JsonObject& json)
auto layout_value = json.get("layout");
if (!layout_value.is_null() && !layout_value.is_object()) {
dbg() << "layout is not an object";
dbgln("layout is not an object");
return false;
}
if (layout_value.is_object()) {
auto& layout = layout_value.as_object();
auto class_name = layout.get("class");
if (class_name.is_null()) {
dbg() << "Invalid layout class name";
dbgln("Invalid layout class name");
return false;
}
@ -1001,7 +1001,7 @@ bool Widget::load_from_json(const JsonObject& json)
auto& child_json = child_json_value.as_object();
auto class_name = child_json.get("class");
if (!class_name.is_string()) {
dbg() << "No class name in entry";
dbgln("No class name in entry");
return false;
}
auto* registration = WidgetClassRegistration::find(class_name.as_string());