OSDN Git Service

make getters of QScriptParser const
authorIvailo Monev <xakepa10@laimg.moc>
Fri, 28 Jun 2019 01:36:42 +0000 (01:36 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Fri, 28 Jun 2019 01:36:42 +0000 (01:36 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/script/parser/qscriptparser_p.h

index eaadc4f..7530681 100644 (file)
@@ -117,10 +117,10 @@ public:
 protected:
     inline void reallocateStack();
 
-    inline Value &sym(int index)
+    inline Value &sym(int index) const
     { return sym_stack [tos + index - 1]; }
 
-    inline Location &loc(int index)
+    inline Location &loc(int index) const
     { return location_stack [tos + index - 2]; }
 
 protected: