diff --git a/interfaces/datastructure/PointCloud.h b/interfaces/datastructure/PointCloud.h index ca9576e7..23eb59e5 100644 --- a/interfaces/datastructure/PointCloud.h +++ b/interfaces/datastructure/PointCloud.h @@ -41,8 +41,8 @@ class SOLARFRAMEWORK_API PointCloud : public Lockable { /// /// @brief PointCloud constructor. - /// - PointCloud() { m_id = 0; }; + /// + PointCloud() = default; PointCloud(const PointCloud& other): m_pointCloud(other.m_pointCloud), m_descriptorType(other.m_descriptorType), m_id(other.m_id) {}; PointCloud& operator=(const PointCloud& /* other */) { return *this; }; @@ -123,8 +123,8 @@ class SOLARFRAMEWORK_API PointCloud : public Lockable { void serialize(Archive &ar, const unsigned int version); std::map> m_pointCloud; - SolAR::datastructure::DescriptorType m_descriptorType; - uint32_t m_id; + SolAR::datastructure::DescriptorType m_descriptorType{DescriptorType::AKAZE}; + uint32_t m_id{0}; }; DECLARESERIALIZE(PointCloud);