Skip to content

Commit 9a86626

Browse files
committed
Use "=default" instead of the default implementation of this special member functions.
1 parent 045de9a commit 9a86626

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/Structure_Helper.h

+8-8
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct Point
6363
* @brief Construct a new Point object
6464
*
6565
*/
66-
Point() {}
66+
Point() = default;
6767
/**
6868
* @brief Construct a new Point object
6969
* @param _x int16_t
@@ -85,7 +85,7 @@ struct PointF
8585
* @brief Construct a new Point F object
8686
*
8787
*/
88-
PointF() {}
88+
PointF() = default;
8989
/**
9090
* @brief Construct a new Point F object
9191
*
@@ -109,7 +109,7 @@ struct Pose
109109
/**
110110
* @brief Construct a new Pose object
111111
*/
112-
Pose() {}
112+
Pose() = default;
113113
/**
114114
* @brief Construct a new Pose object
115115
*
@@ -134,7 +134,7 @@ struct PoseF
134134
/**
135135
* @brief Construct a new PoseF object
136136
*/
137-
PoseF() {}
137+
PoseF() = default;
138138
/**
139139
* @brief Construct a new PoseF object
140140
*
@@ -159,7 +159,7 @@ struct Point3D
159159
/**
160160
* @brief Construct a new Point3D object
161161
*/
162-
Point3D() {}
162+
Point3D() = default;
163163
/**
164164
* @brief Construct a new Point3D object
165165
*
@@ -184,7 +184,7 @@ struct PointF3D
184184
/**
185185
* @brief Construct a new Point3D object
186186
*/
187-
PointF3D() {}
187+
PointF3D() = default;
188188
/**
189189
* @brief Construct a new Point3D object
190190
*
@@ -211,7 +211,7 @@ struct Point4D
211211
/**
212212
* @brief Construct a new Point4D object
213213
*/
214-
Point4D() {}
214+
Point4D() = default;
215215
/**
216216
* @brief Construct a new Point4D object
217217
*
@@ -271,7 +271,7 @@ struct PolarPoint
271271
/**
272272
* @brief Construct a new Polar Point object
273273
*/
274-
PolarPoint() {}
274+
PolarPoint() = default;
275275
/**
276276
*
277277
* @brief Construct a new Polar Point object

0 commit comments

Comments
 (0)