diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Shell/SyntaxHighlighter.cpp | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Shell/SyntaxHighlighter.cpp')
-rw-r--r-- | Userland/Shell/SyntaxHighlighter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Shell/SyntaxHighlighter.cpp b/Userland/Shell/SyntaxHighlighter.cpp index 619fe2429b..c469be4560 100644 --- a/Userland/Shell/SyntaxHighlighter.cpp +++ b/Userland/Shell/SyntaxHighlighter.cpp @@ -24,7 +24,7 @@ enum class AugmentedTokenKind : u32 { class HighlightVisitor : public AST::NodeVisitor { public: - HighlightVisitor(Vector<GUI::TextDocumentSpan>& spans, const Gfx::Palette& palette, const GUI::TextDocument& document) + HighlightVisitor(Vector<GUI::TextDocumentSpan>& spans, Gfx::Palette const& palette, const GUI::TextDocument& document) : m_spans(spans) , m_palette(palette) , m_document(document) @@ -516,7 +516,7 @@ private: } Vector<GUI::TextDocumentSpan>& m_spans; - const Gfx::Palette& m_palette; + Gfx::Palette const& m_palette; const GUI::TextDocument& m_document; bool m_is_first_in_command { false }; }; @@ -537,7 +537,7 @@ bool SyntaxHighlighter::is_navigatable(u64) const return false; } -void SyntaxHighlighter::rehighlight(const Palette& palette) +void SyntaxHighlighter::rehighlight(Palette const& palette) { auto text = m_client->get_text(); |