]> granicus.if.org Git - flex/commitdiff
declare some const where missing in c++ header file
authorWill Estes <wlestes@users.sourceforge.net>
Thu, 12 Apr 2007 19:12:56 +0000 (19:12 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Thu, 12 Apr 2007 19:12:56 +0000 (19:12 +0000)
FlexLexer.h

index 892e9e6082a848ee20b449cc59d7d6f032f2da38..d16f367f8dd95fa1fe6bad335bf301ceb6cb9807 100644 (file)
@@ -62,8 +62,8 @@ class FlexLexer {
 public:
        virtual ~FlexLexer()    { }
 
-       const char* YYText()    { return yytext; }
-       int YYLeng()            { return yyleng; }
+       const char* YYText() const      { return yytext; }
+       int YYLeng()    const   { return yyleng; }
 
        virtual void
                yy_switch_to_buffer( struct yy_buffer_state* new_buffer ) = 0;