# HG changeset patch # User Teemu Piippo # Date 1655754094 -10800 # Node ID 065db0753f05c276a33aae486bc7dfbfeef7606d # Parent 959469a7e149dbc1e1c24219a786bc58c70e2adb a bit of refactor in mapbox::util::nth diff -r 959469a7e149 -r 065db0753f05 src/document.cpp --- a/src/document.cpp Mon Jun 20 22:40:31 2022 +0300 +++ b/src/document.cpp Mon Jun 20 22:41:34 2022 +0300 @@ -26,18 +26,15 @@ #include "circularprimitive.h" // Make mapbox::earcut work with glm::vec3 -namespace mapbox { -namespace util { -template<> struct nth<0, glm::vec3> +template<> struct mapbox::util::nth<0, glm::vec3> { static constexpr float get(const glm::vec3& t) { return t.x; }; }; -template<> struct nth<1, glm::vec3> + +template<> struct mapbox::util::nth<1, glm::vec3> { static constexpr float get(const glm::vec3& t) { return t.y; }; }; -} -} EditTools::EditTools(QObject* parent) : QObject{parent},