Merge pull request #75777 from 3deathtoll/patch-1

Make `SyntaxHighlighter::get_text_edit` a const function
This commit is contained in:
Yuri Sizov 2023-04-10 12:49:04 +02:00 committed by GitHub
commit 8784f95e1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@
This will color columns 0-4 red, and columns 5-eol in green.
</description>
</method>
<method name="get_text_edit">
<method name="get_text_edit" qualifiers="const">
<return type="TextEdit" />
<description>
Returns the associated [TextEdit] node.

View file

@ -99,7 +99,7 @@ void SyntaxHighlighter::set_text_edit(TextEdit *p_text_edit) {
update_cache();
}
TextEdit *SyntaxHighlighter::get_text_edit() {
TextEdit *SyntaxHighlighter::get_text_edit() const {
return text_edit;
}

View file

@ -64,7 +64,7 @@ public:
virtual void _update_cache() {}
void set_text_edit(TextEdit *p_text_edit);
TextEdit *get_text_edit();
TextEdit *get_text_edit() const;
SyntaxHighlighter() {}
virtual ~SyntaxHighlighter() {}