summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-09 00:11:15 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-09 21:11:09 +0100
commit019c9eb749f2fdb6f99f0ce0aba86c331538636d (patch)
tree73c61d5c90c283c25f9a03621c6b154adfee684f /Applications
parent7235ddfd98a2c718afe7d773ed24db0720f2c4db (diff)
downloadserenity-019c9eb749f2fdb6f99f0ce0aba86c331538636d.zip
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.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Browser/DownloadWidget.cpp2
-rw-r--r--Applications/IRCClient/IRCAppWindow.cpp2
-rw-r--r--Applications/Spreadsheet/Spreadsheet.cpp8
-rw-r--r--Applications/Spreadsheet/main.cpp2
-rw-r--r--Applications/TextEditor/TextEditorWidget.cpp2
5 files changed, 8 insertions, 8 deletions
diff --git a/Applications/Browser/DownloadWidget.cpp b/Applications/Browser/DownloadWidget.cpp
index ed7796c3ac..39d931e216 100644
--- a/Applications/Browser/DownloadWidget.cpp
+++ b/Applications/Browser/DownloadWidget.cpp
@@ -162,7 +162,7 @@ void DownloadWidget::did_progress(Optional<u32> total_size, u32 downloaded_size)
void DownloadWidget::did_finish(bool success)
{
- dbg() << "did_finish, success=" << success;
+ dbgln("did_finish, success={}", success);
m_close_button->set_enabled(true);
m_cancel_button->set_text("Open in Folder");
diff --git a/Applications/IRCClient/IRCAppWindow.cpp b/Applications/IRCClient/IRCAppWindow.cpp
index cfe6f101bf..8d4f931025 100644
--- a/Applications/IRCClient/IRCAppWindow.cpp
+++ b/Applications/IRCClient/IRCAppWindow.cpp
@@ -260,7 +260,7 @@ void IRCAppWindow::setup_menus()
auto menubar = GUI::MenuBar::construct();
auto& app_menu = menubar->add_menu("IRC Client");
app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
- dbg() << "Terminal: Quit menu activated!";
+ dbgln("Terminal: Quit menu activated!");
GUI::Application::the()->quit();
return;
}));
diff --git a/Applications/Spreadsheet/Spreadsheet.cpp b/Applications/Spreadsheet/Spreadsheet.cpp
index e01eb77781..0d20b22fdd 100644
--- a/Applications/Spreadsheet/Spreadsheet.cpp
+++ b/Applications/Spreadsheet/Spreadsheet.cpp
@@ -308,15 +308,15 @@ Position Sheet::offset_relative_to(const Position& base, const Position& offset,
auto base_column_it = m_columns.find(base.column);
if (offset_column_it.is_end()) {
- dbg() << "Column '" << offset.column << "' does not exist!";
+ dbgln("Column '{}' does not exist!", offset.column);
return base;
}
if (offset_base_column_it.is_end()) {
- dbg() << "Column '" << offset_base.column << "' does not exist!";
+ dbgln("Column '{}' does not exist!", offset.column);
return base;
}
if (base_column_it.is_end()) {
- dbg() << "Column '" << base.column << "' does not exist!";
+ dbgln("Column '{}' does not exist!", offset.column);
return offset;
}
@@ -376,7 +376,7 @@ void Sheet::copy_cells(Vector<Position> from, Vector<Position> to, Optional<Posi
}
// Just disallow misaligned copies.
- dbg() << "Cannot copy " << from.size() << " cells to " << to.size() << " cells";
+ dbgln("Cannot copy {} cells to {} cells", from.size(), to.size());
}
RefPtr<Sheet> Sheet::from_json(const JsonObject& object, Workbook& workbook)
diff --git a/Applications/Spreadsheet/main.cpp b/Applications/Spreadsheet/main.cpp
index 5b7663e44f..e13a89cdac 100644
--- a/Applications/Spreadsheet/main.cpp
+++ b/Applications/Spreadsheet/main.cpp
@@ -208,7 +208,7 @@ int main(int argc, char* argv[])
auto& sheet = spreadsheet_widget.current_worksheet();
for (auto& line : spreadsheet_data.value().split_view('\n')) {
- dbg() << "Paste line '" << line << "'";
+ dbgln("Paste line '{}'", line);
auto position = sheet.position_from_url(line);
if (position.has_value())
source_positions.append(position.release_value());
diff --git a/Applications/TextEditor/TextEditorWidget.cpp b/Applications/TextEditor/TextEditorWidget.cpp
index 67e1f6b7d2..a6ca93fa82 100644
--- a/Applications/TextEditor/TextEditorWidget.cpp
+++ b/Applications/TextEditor/TextEditorWidget.cpp
@@ -125,7 +125,7 @@ TextEditorWidget::TextEditorWidget()
m_editor->document().update_regex_matches(needle);
auto found_range = m_editor->document().find_next(needle, m_editor->normalized_selection().end(), GUI::TextDocument::SearchShouldWrap::Yes, m_find_use_regex);
- dbg() << "find_next(\"" << needle << "\") returned " << found_range;
+ dbgln("find_next('{}') returned {}", needle, found_range);
if (found_range.is_valid()) {
m_editor->set_selection(found_range);
} else {