mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
HackStudio: Abstract over syntax highlighter
This commit is contained in:
parent
bacd3dd57a
commit
137d68a2ae
Notes:
sideshowbarker
2024-07-19 08:20:36 +09:00
Author: https://github.com/oriko1010
Commit: 137d68a2ae
Pull-request: https://github.com/SerenityOS/serenity/pull/1429
Reviewed-by: https://github.com/awesomekling
5 changed files with 32 additions and 16 deletions
|
@ -1497,10 +1497,7 @@ void TextEditor::flush_pending_change_notification_if_needed()
|
|||
|
||||
const SyntaxHighlighter* TextEditor::syntax_highlighter() const
|
||||
{
|
||||
if (m_highlighter)
|
||||
return m_highlighter.ptr();
|
||||
else
|
||||
return nullptr;
|
||||
return m_highlighter.ptr();
|
||||
}
|
||||
|
||||
void TextEditor::set_syntax_highlighter(OwnPtr<SyntaxHighlighter> highlighter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue