Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
1a8163e1
Commit
1a8163e1
authored
3 years ago
by
AlQuemist
Browse files
Options
Downloads
Patches
Plain Diff
Device/Mask: Replace `typedef` declarations with `using`
parent
be279760
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!423
Device/Mask: Mark the Boost functions by using the explicit namespace
Pipeline
#47870
passed
3 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Device/Mask/Line.cpp
+2
-3
2 additions, 3 deletions
Device/Mask/Line.cpp
Device/Mask/Polygon.cpp
+2
-2
2 additions, 2 deletions
Device/Mask/Polygon.cpp
with
4 additions
and
5 deletions
Device/Mask/Line.cpp
+
2
−
3
View file @
1a8163e1
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Device/Mask/Polygon.cpp
+
2
−
2
View file @
1a8163e1
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment