Points: modernize C++: use default member init

This commit is contained in:
wmayer
2023-08-22 17:31:16 +02:00
committed by wwmayer
parent 5cab6488e0
commit ad3a47573c
2 changed files with 6 additions and 10 deletions

View File

@@ -720,11 +720,7 @@ unsigned long PointsGrid::FindElements (const Base::Vector3d &rclPoint, std::set
PointsGridIterator::PointsGridIterator (const PointsGrid &rclG)
: _rclGrid(rclG),
_ulX(0), _ulY(0), _ulZ(0),
_clPt(0.0f, 0.0f, 0.0f), _clDir(0.0f, 0.0f, 0.0f),
_bValidRay(false),
_fMaxSearchArea (FLOAT_MAX)
_clPt(0.0f, 0.0f, 0.0f), _clDir(0.0f, 0.0f, 0.0f)
{
}

View File

@@ -216,13 +216,13 @@ public:
protected:
const PointsGrid& _rclGrid; /**< The point grid. */
unsigned long _ulX; /**< Number of grids in x. */
unsigned long _ulY; /**< Number of grids in y. */
unsigned long _ulZ; /**< Number of grids in z. */
unsigned long _ulX{0}; /**< Number of grids in x. */
unsigned long _ulY{0}; /**< Number of grids in y. */
unsigned long _ulZ{0}; /**< Number of grids in z. */
Base::Vector3d _clPt; /**< Base point of search ray. */
Base::Vector3d _clDir; /**< Direction of search ray. */
bool _bValidRay; /**< Search ray ok? */
float _fMaxSearchArea;
bool _bValidRay{false}; /**< Search ray ok? */
float _fMaxSearchArea{FLOAT_MAX};
/** Checks if a grid position is already visited by NextOnRay(). */
struct GridElement
{