Skip to content

Commit 3c87e21

Browse files
nyalldawsonwonder-sk
authored andcommitted
Initialize members in headers
Fixes some cases where these members are not initalized
1 parent 510a3ef commit 3c87e21

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/tile/FileDimInfo.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ struct FileDimInfo
2222
FileDimInfo()
2323
{}
2424

25-
FileDimInfo(const std::string& name) : name(name), extraDim(false)
25+
FileDimInfo(const std::string& name) : name(name)
2626
{}
2727

2828
std::string name;
29-
pdal::Dimension::Type type;
30-
int offset;
31-
pdal::Dimension::Id dim;
32-
bool extraDim;
29+
pdal::Dimension::Type type {pdal::Dimension::Type::None};
30+
int offset {0};
31+
pdal::Dimension::Id dim {pdal::Dimension::Id::Unknown};
32+
bool extraDim {false};
3333
};
3434

3535
using DimInfoList = std::vector<FileDimInfo>;

src/utils.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ struct Tiling
4949
// where N,M are some integer values
5050
struct TileAlignment
5151
{
52-
double originX;
53-
double originY;
54-
double tileSize;
52+
double originX {-1};
53+
double originY {-1};
54+
double tileSize {1000};
5555

5656
// returns tiling that fully covers given bounding box, using this tile alignment
5757
Tiling coverBounds(const BOX2D &box) const

0 commit comments

Comments
 (0)