mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-18 00:52:57 +00:00
Everywhere: Turn #if *_DEBUG into dbgln_if/if constexpr
This commit is contained in:
parent
4e6f03a860
commit
6cf59b6ae9
Notes:
sideshowbarker
2024-07-18 18:47:59 +09:00
Author: https://github.com/gunnarbeutner
Commit: 6cf59b6ae9
Pull-request: https://github.com/SerenityOS/serenity/pull/6796
58 changed files with 315 additions and 469 deletions
|
@ -140,10 +140,10 @@ void DiffViewer::set_content(const String& original, const String& diff)
|
|||
m_original_lines = split_to_lines(original);
|
||||
m_hunks = Diff::parse_hunks(diff);
|
||||
|
||||
#if DIFF_DEBUG
|
||||
for (size_t i = 0; i < m_original_lines.size(); ++i)
|
||||
dbgln("{}:{}", i, m_original_lines[i]);
|
||||
#endif
|
||||
if constexpr (DIFF_DEBUG) {
|
||||
for (size_t i = 0; i < m_original_lines.size(); ++i)
|
||||
dbgln("{}:{}", i, m_original_lines[i]);
|
||||
}
|
||||
}
|
||||
|
||||
DiffViewer::DiffViewer()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue