diff --git a/MathLib/TemplatePoint.h b/MathLib/TemplatePoint.h index 27aa64773c5f5b3dc869c40e0fada5a425c9da7b..f5662211b072d60594d5bf3c823eaa525b99e5a8 100644 --- a/MathLib/TemplatePoint.h +++ b/MathLib/TemplatePoint.h @@ -105,7 +105,7 @@ protected: template <typename T, std::size_t DIM> TemplatePoint<T,DIM>::TemplatePoint() : - _x({}) + _x({0}) {} template <typename T, std::size_t DIM> diff --git a/MeshLib/CoordinateSystem.h b/MeshLib/CoordinateSystem.h index d8d7af4747d43b3b09a832ba0fefc54a53dba641..deb6a8df49200db8417fed6574d0172632b7157f 100644 --- a/MeshLib/CoordinateSystem.h +++ b/MeshLib/CoordinateSystem.h @@ -63,13 +63,13 @@ public: } /// has X dimension - bool hasX() const { return (_type & CoordinateSystemType::type::X); } + bool hasX() const { return (_type & CoordinateSystemType::type::X) != 0; } /// has Y dimension - bool hasY() const { return (_type & CoordinateSystemType::type::Y); } + bool hasY() const { return (_type & CoordinateSystemType::type::Y) != 0; } /// has z dimension - bool hasZ() const { return (_type & CoordinateSystemType::type::Z); } + bool hasZ() const { return (_type & CoordinateSystemType::type::Z) != 0; } private: template <class T>