components/antlr/patches/antlr-parfait.patch
author Rich Burridge <rich.burridge@oracle.com>
Mon, 12 May 2014 08:45:20 -0700
changeset 1891 f58fcc59b356
parent 1352 1358a1e1ff4c
permissions -rw-r--r--
18744465 Lua package arc-caseid case is incorrect. 18744982 Userland libnet package has wrong TPNO.

--- ./lib/cpp/antlr/TokenRefCount.hpp.orig	Mon Mar 18 11:58:26 2013
+++ ./lib/cpp/antlr/TokenRefCount.hpp	Mon Mar 18 11:58:52 2013
@@ -84,9 +84,9 @@
 		return *this;
 	}
 
-	operator T* ()  const { return ref ? static_cast<T*>(ref->ptr) : 0; }
-	T* operator->() const { return ref ? static_cast<T*>(ref->ptr) : 0; }
-	T* get()        const { return ref ? static_cast<T*>(ref->ptr) : 0; }
+	operator T* ()  const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
+	T* operator->() const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
+	T* get()        const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
 };
 
 typedef TokenRefCount<Token> RefToken;
--- ./lib/cpp/antlr/ASTRefCount.hpp.orig	Mon Mar 18 11:59:16 2013
+++ ./lib/cpp/antlr/ASTRefCount.hpp	Mon Mar 18 11:59:28 2013
@@ -84,9 +84,9 @@
 		return *this;
 	}
 
-	operator T* ()  const { return ref ? static_cast<T*>(ref->ptr) : 0; }
-	T* operator->() const { return ref ? static_cast<T*>(ref->ptr) : 0; }
-	T* get()        const { return ref ? static_cast<T*>(ref->ptr) : 0; }
+	operator T* ()  const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
+	T* operator->() const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
+	T* get()        const { return ref ? static_cast<T* const>(ref->ptr) : 0; }
 };
 
 typedef ASTRefCount<AST> RefAST;