Codechange: Use functor for Kdtree's XYFunc. (#13074)

Kdtree uses a function pointer and incorrectly calls it a functor. The function pointer needs to be passed on instantiaton.

Instead, use an actual functor. This simplifies instantiation.
This commit is contained in:
Peter Nelson
2024-11-19 20:29:56 +00:00
committed by GitHub
parent 369ea29e1e
commit fc8685d618
8 changed files with 40 additions and 28 deletions
+1 -1
View File
@@ -102,7 +102,7 @@
Point _tile_fract_coords;
ViewportSignKdtree _viewport_sign_kdtree(&Kdtree_ViewportSignXYFunc);
ViewportSignKdtree _viewport_sign_kdtree{};
static int _viewport_sign_maxwidth = 0;