You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Make SyntaxHighlighter::get_text_edit a const function
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
This will color columns 0-4 red, and columns 5-eol in green.
|
This will color columns 0-4 red, and columns 5-eol in green.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_text_edit">
|
<method name="get_text_edit" qualifiers="const">
|
||||||
<return type="TextEdit" />
|
<return type="TextEdit" />
|
||||||
<description>
|
<description>
|
||||||
Returns the associated [TextEdit] node.
|
Returns the associated [TextEdit] node.
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ void SyntaxHighlighter::set_text_edit(TextEdit *p_text_edit) {
|
|||||||
update_cache();
|
update_cache();
|
||||||
}
|
}
|
||||||
|
|
||||||
TextEdit *SyntaxHighlighter::get_text_edit() {
|
TextEdit *SyntaxHighlighter::get_text_edit() const {
|
||||||
return text_edit;
|
return text_edit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ public:
|
|||||||
virtual void _update_cache() {}
|
virtual void _update_cache() {}
|
||||||
|
|
||||||
void set_text_edit(TextEdit *p_text_edit);
|
void set_text_edit(TextEdit *p_text_edit);
|
||||||
TextEdit *get_text_edit();
|
TextEdit *get_text_edit() const;
|
||||||
|
|
||||||
SyntaxHighlighter() {}
|
SyntaxHighlighter() {}
|
||||||
virtual ~SyntaxHighlighter() {}
|
virtual ~SyntaxHighlighter() {}
|
||||||
|
|||||||
Reference in New Issue
Block a user