mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 09:52:18 +08:00
Merge pull request #75777 from 3deathtoll/patch-1
Make `SyntaxHighlighter::get_text_edit` a const function
This commit is contained in:
commit
8784f95e1f
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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() {}
|
||||
|
Loading…
Reference in New Issue
Block a user