diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-02-07 15:33:24 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-08 18:08:55 +0100 |
commit | 09a43969ba957b3484cc9387344fea145f46aa46 (patch) | |
tree | 0e2077e1d8af02b06e39cb4ca6cbfcba37052c73 /Userland/Libraries/LibCpp/SyntaxHighlighter.cpp | |
parent | 1f8a633cc762fc3ca8544ee75ce25a7a8860d4be (diff) | |
download | serenity-09a43969ba957b3484cc9387344fea145f46aa46.zip |
Everywhere: Replace dbgln<flag>(...) with dbgln_if(flag, ...)
Replacement made by `find Kernel Userland -name '*.h' -o -name '*.cpp' | sed -i -Ee 's/dbgln\b<(\w+)>\(/dbgln_if(\1, /g'`
Diffstat (limited to 'Userland/Libraries/LibCpp/SyntaxHighlighter.cpp')
-rw-r--r-- | Userland/Libraries/LibCpp/SyntaxHighlighter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp b/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp index c658a161c0..f1dc044bfe 100644 --- a/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp +++ b/Userland/Libraries/LibCpp/SyntaxHighlighter.cpp @@ -83,7 +83,7 @@ void SyntaxHighlighter::rehighlight(Gfx::Palette palette) Vector<GUI::TextDocumentSpan> spans; for (auto& token : tokens) { - dbgln<SYNTAX_HIGHLIGHTING_DEBUG>("{} @ {}:{} - {}:{}", token.to_string(), token.m_start.line, token.m_start.column, token.m_end.line, token.m_end.column); + dbgln_if(SYNTAX_HIGHLIGHTING_DEBUG, "{} @ {}:{} - {}:{}", token.to_string(), token.m_start.line, token.m_start.column, token.m_end.line, token.m_end.column); GUI::TextDocumentSpan span; span.range.set_start({ token.m_start.line, token.m_start.column }); span.range.set_end({ token.m_end.line, token.m_end.column }); |