Explorar o código

Cache from CacheAllocator has private fields.

clementlandrin hai 1 ano
pai
achega
66337348f2
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      hxd/impl/CacheAllocator.hx

+ 3 - 2
hxd/impl/CacheAllocator.hx

@@ -1,9 +1,10 @@
 package hxd.impl;
 import hxd.impl.Allocator;
 
+@:allow(hxd.impl.CacheAllocator)
 private class Cache<T> {
-	public var available : Array<T> = [];
-	public var disposed : Array<T> = [];
+	var available : Array<T> = [];
+	var disposed : Array<T> = [];
 	public var lastUse : Float = haxe.Timer.stamp();
 	public var onDispose : T -> Void;