More warning elimination.
authorthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 4 Jan 2008 23:57:58 +0000 (23:57 +0000)
committerthurston <thurston@052ea7fc-9027-0410-9066-f65837a77df0>
Fri, 4 Jan 2008 23:57:58 +0000 (23:57 +0000)
git-svn-id: http://svn.complang.org/ragel/trunk@371 052ea7fc-9027-0410-9066-f65837a77df0

ragel/parsedata.cpp
ragel/parsetree.h
redfsm/xmlparse.kh

index 6ccd4c3..42a79ce 100644 (file)
@@ -37,7 +37,7 @@ using namespace std;
 
 char mainMachine[] = "main";
 
-void Token::set( char *str, int len )
+void Token::set( const char *str, int len )
 {
        length = len;
        data = new char[len+1];
index aacbaf6..a25525f 100644 (file)
@@ -200,7 +200,7 @@ struct Token
 
        void prepareLitString( Token &result, bool &caseInsensitive );
        void append( const Token &other );
-       void set( char *str, int len );
+       void set( const char *str, int len );
 };
 
 /* Store the value and type of a priority augmentation. */
index 2108ca6..48b861d 100644 (file)
@@ -53,7 +53,7 @@ struct XMLTag
                tagId(tagId), type(type), 
                content(0), attrList(0) {}
        
-       Attribute *findAttr( char *id )
+       Attribute *findAttr( const char *id )
        {
                if ( attrList != 0 ) {
                        for ( AttrList::Iter attr = *attrList; attr.lte(); attr++ ) {