Make SyntaxHighlighter::get_text_edit a const function

This commit is contained in:
3deathtoll 2023-04-07 23:46:50 +05:30
parent 132000f58d
commit 3841c4a4b4
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() {}