diff options
Diffstat (limited to 'src/MoonP/ast.hpp')
-rw-r--r-- | src/MoonP/ast.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MoonP/ast.hpp b/src/MoonP/ast.hpp index d576395..104202d 100644 --- a/src/MoonP/ast.hpp +++ b/src/MoonP/ast.hpp | |||
@@ -97,7 +97,7 @@ public: | |||
97 | virtual int getId() const = 0; | 97 | virtual int getId() const = 0; |
98 | 98 | ||
99 | template<class T> | 99 | template<class T> |
100 | inline ast_ptr<false, T> new_ptr() { | 100 | inline ast_ptr<false, T> new_ptr() const { |
101 | auto item = new T; | 101 | auto item = new T; |
102 | item->m_begin.m_line = m_begin.m_line; | 102 | item->m_begin.m_line = m_begin.m_line; |
103 | item->m_end.m_line = m_begin.m_line; | 103 | item->m_end.m_line = m_begin.m_line; |