diff options
author | asynts <asynts@gmail.com> | 2021-01-15 21:29:01 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-22 22:14:30 +0100 |
commit | 27bc48e06cf54cb826fd8dd46edd9331650f3a63 (patch) | |
tree | e0ac1a4e471a1bc9551376fdb576a60a87205eb8 /Userland/Applications | |
parent | 7b0a1a98d9edc5ae91df9138b695fb2bb3ead4b7 (diff) | |
download | serenity-27bc48e06cf54cb826fd8dd46edd9331650f3a63.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 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Spreadsheet/Spreadsheet.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Userland/Applications/Spreadsheet/Spreadsheet.cpp b/Userland/Applications/Spreadsheet/Spreadsheet.cpp index 0d20b22fdd..4fec43e653 100644 --- a/Userland/Applications/Spreadsheet/Spreadsheet.cpp +++ b/Userland/Applications/Spreadsheet/Spreadsheet.cpp @@ -28,6 +28,7 @@ #include "JSIntegration.h" #include "Workbook.h" #include <AK/ByteBuffer.h> +#include <AK/Debug.h> #include <AK/GenericLexer.h> #include <AK/JsonArray.h> #include <AK/JsonObject.h> @@ -354,9 +355,7 @@ void Sheet::copy_cells(Vector<Position> from, Vector<Position> to, Optional<Posi auto& target = to.first(); for (auto& position : from) { -#ifdef COPY_DEBUG - dbg() << "Paste from '" << position.to_url() << "' to '" << target.to_url() << "'"; -#endif + dbgln<debug_copy>("Paste from '{}' to '{}'", position.to_url(), target.to_url()); copy_to(position, resolve_relative_to.has_value() ? offset_relative_to(target, position, resolve_relative_to.value()) : target); } @@ -367,9 +366,7 @@ void Sheet::copy_cells(Vector<Position> from, Vector<Position> to, Optional<Posi // Fill the target selection with the single cell. auto& source = from.first(); for (auto& position : to) { -#ifdef COPY_DEBUG - dbg() << "Paste from '" << source.to_url() << "' to '" << position.to_url() << "'"; -#endif + dbgln<debug_copy>("Paste from '{}' to '{}'", source.to_url(), position.to_url()); copy_to(source, resolve_relative_to.has_value() ? offset_relative_to(position, source, resolve_relative_to.value()) : position); } return; |