components/antlr/patches/antlr-parfait.patch
branchs11-update
changeset 2723 138732f62341
equal deleted inserted replaced
2722:dc566ca73390 2723:138732f62341
       
     1 --- ./lib/cpp/antlr/TokenRefCount.hpp.orig	Mon Mar 18 11:58:26 2013
       
     2 +++ ./lib/cpp/antlr/TokenRefCount.hpp	Mon Mar 18 11:58:52 2013
       
     3 @@ -84,9 +84,9 @@
       
     4  		return *this;
       
     5  	}
       
     6  
       
     7 -	operator T* ()  const { return ref ? static_cast<T*>(ref->ptr) : 0; }
       
     8 -	T* operator->() const { return ref ? static_cast<T*>(ref->ptr) : 0; }
       
     9 -	T* get()        const { return ref ? static_cast<T*>(ref->ptr) : 0; }
       
    10 +	operator T* ()  const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
       
    11 +	T* operator->() const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
       
    12 +	T* get()        const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
       
    13  };
       
    14  
       
    15  typedef TokenRefCount<Token> RefToken;
       
    16 --- ./lib/cpp/antlr/ASTRefCount.hpp.orig	Mon Mar 18 11:59:16 2013
       
    17 +++ ./lib/cpp/antlr/ASTRefCount.hpp	Mon Mar 18 11:59:28 2013
       
    18 @@ -84,9 +84,9 @@
       
    19  		return *this;
       
    20  	}
       
    21  
       
    22 -	operator T* ()  const { return ref ? static_cast<T*>(ref->ptr) : 0; }
       
    23 -	T* operator->() const { return ref ? static_cast<T*>(ref->ptr) : 0; }
       
    24 -	T* get()        const { return ref ? static_cast<T*>(ref->ptr) : 0; }
       
    25 +	operator T* ()  const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
       
    26 +	T* operator->() const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
       
    27 +	T* get()        const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
       
    28  };
       
    29  
       
    30  typedef ASTRefCount<AST> RefAST;