Skip to content
Snippets Groups Projects
Commit 1a8163e1 authored by AlQuemist's avatar AlQuemist
Browse files

Device/Mask: Replace `typedef` declarations with `using`

parent be279760
No related branches found
No related tags found
1 merge request!423Device/Mask: Mark the Boost functions by using the explicit namespace
Pipeline #47870 passed
......@@ -19,9 +19,8 @@
#include <boost/geometry.hpp>
#include <limits>
typedef boost::geometry::model::d2::point_xy<double> point_t;
// typedef model::box<point_t> box_t;
typedef boost::geometry::model::linestring<point_t> line_t;
using point_t = boost::geometry::model::d2::point_xy<double>;
using line_t = boost::geometry::model::linestring<point_t>;
Line::Line(double x1, double y1, double x2, double y2)
: IShape2D("Line"), m_x1(x1), m_y1(y1), m_x2(x2), m_y2(y2)
......
......@@ -20,8 +20,8 @@
//! The private data for polygons to hide boost dependency from the header
class PolygonPrivate {
public:
typedef boost::geometry::model::d2::point_xy<double> point_t;
typedef boost::geometry::model::polygon<point_t> polygon_t;
using point_t = boost::geometry::model::d2::point_xy<double>;
using polygon_t = boost::geometry::model::polygon<point_t>;
polygon_t polygon;
void init_from(const std::vector<double>& x, const std::vector<double>& y);
void get_points(std::vector<double>& xpos, std::vector<double>& ypos);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment