summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/classes/SyntaxHighlighter.xml2
-rw-r--r--scene/resources/syntax_highlighter.cpp2
-rw-r--r--scene/resources/syntax_highlighter.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/classes/SyntaxHighlighter.xml b/doc/classes/SyntaxHighlighter.xml
index 76f98f9edb..79f4944bae 100644
--- a/doc/classes/SyntaxHighlighter.xml
+++ b/doc/classes/SyntaxHighlighter.xml
@@ -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.
diff --git a/scene/resources/syntax_highlighter.cpp b/scene/resources/syntax_highlighter.cpp
index 05a8cf2dc7..903be41c26 100644
--- a/scene/resources/syntax_highlighter.cpp
+++ b/scene/resources/syntax_highlighter.cpp
@@ -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;
}
diff --git a/scene/resources/syntax_highlighter.h b/scene/resources/syntax_highlighter.h
index 7cc58cbbda..bf263f9490 100644
--- a/scene/resources/syntax_highlighter.h
+++ b/scene/resources/syntax_highlighter.h
@@ -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() {}