Skip to content

Commit c236b8c

Browse files
authored
Merge pull request #109 from SolarFramework/fix/issue75213
feat (datastructure): initialize the descriptor type of PointCloud da…
2 parents 0a874af + 43c6f6c commit c236b8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

interfaces/datastructure/PointCloud.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class SOLARFRAMEWORK_API PointCloud : public Lockable {
4141

4242
///
4343
/// @brief PointCloud constructor.
44-
///
45-
PointCloud() { m_id = 0; };
44+
///
45+
PointCloud() = default;
4646
PointCloud(const PointCloud& other): m_pointCloud(other.m_pointCloud), m_descriptorType(other.m_descriptorType), m_id(other.m_id) {};
4747
PointCloud& operator=(const PointCloud& /* other */) { return *this; };
4848

@@ -123,8 +123,8 @@ class SOLARFRAMEWORK_API PointCloud : public Lockable {
123123
void serialize(Archive &ar, const unsigned int version);
124124

125125
std::map<uint32_t, SRef<SolAR::datastructure::CloudPoint>> m_pointCloud;
126-
SolAR::datastructure::DescriptorType m_descriptorType;
127-
uint32_t m_id;
126+
SolAR::datastructure::DescriptorType m_descriptorType{DescriptorType::AKAZE};
127+
uint32_t m_id{0};
128128
};
129129

130130
DECLARESERIALIZE(PointCloud);

0 commit comments

Comments
 (0)