Merge pull request #1409 from RockLobster/develop
FIX: Moved the GeometryCompressor's free_list_maximum into a member variable of the class.
This commit is contained in:
		
						commit
						cf9f88f8ce
					
				| @ -35,8 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| #include <limits> | ||||
| #include <string> | ||||
| 
 | ||||
| int free_list_maximum = 0; | ||||
| int UniqueNumber() { return ++free_list_maximum; } | ||||
| //int UniqueNumber() { return ++free_list_maximum; }
 | ||||
| 
 | ||||
| GeometryCompressor::GeometryCompressor() | ||||
| { | ||||
|  | ||||
| @ -58,6 +58,8 @@ class GeometryCompressor | ||||
|     NodeID GetLastNodeIDOfBucket(const EdgeID edge_id) const; | ||||
| 
 | ||||
|   private: | ||||
|     int free_list_maximum = 0; | ||||
|      | ||||
|     void IncreaseFreeList(); | ||||
|     std::vector<std::vector<CompressedNode>> m_compressed_geometries; | ||||
|     std::vector<unsigned> m_free_list; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user