const-workitem.patch
author Benjamin Smedberg <benjamin@smedbergs.us>
Tue, 22 Apr 2008 13:40:29 -0400
changeset 43 a2f5122ed78b9e678da4b9eefc815dcbb1269fef
parent 28 70c871a7a5e6175cbd6996016b04339d09288922
permissions -rw-r--r--
Fix strict warnings

diff --git a/MMgc/GC.h b/MMgc/GC.h
--- a/MMgc/GC.h
+++ b/MMgc/GC.h
@@ -932,7 +932,7 @@ namespace MMgc
 		uintptr	GetStackTop() const;
 
 		// for deciding a tree of things should be scanned from presweep
-		void PushWorkItem(GCWorkItem &item) { PushWorkItem(m_incrementalWork, item); }
+		void PushWorkItem(const GCWorkItem &item) { PushWorkItem(m_incrementalWork, item); }
 
 	private: