From f526277a7d884bf9b66718e25507dde27bfd6593 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 12 Dec 2018 16:26:49 +0100 Subject: [PATCH] Fix some warnings --- src/ifcgeom/IfcGeom.h | 3 ++- src/ifcgeom/IfcRepresentationShapeItem.h | 2 +- src/ifcparse/IfcSpfHeader.cpp | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ifcgeom/IfcGeom.h b/src/ifcgeom/IfcGeom.h index 19862f3613..453fba0f79 100644 --- a/src/ifcgeom/IfcGeom.h +++ b/src/ifcgeom/IfcGeom.h @@ -199,7 +199,6 @@ private: double ifc_planeangle_unit; double modelling_precision; double dimensionality; - faceset_helper* faceset_helper_; #ifndef NO_CACHE MAKE_TYPE_NAME(Cache) cache; @@ -212,6 +211,8 @@ private: // For stopping PlacementRelTo recursion in convert(const IfcSchema::IfcObjectPlacement* l, gp_Trsf& trsf) const IfcParse::declaration* placement_rel_to; + faceset_helper* faceset_helper_; + public: MAKE_TYPE_NAME(Kernel)() : IfcGeom::Kernel(0) diff --git a/src/ifcgeom/IfcRepresentationShapeItem.h b/src/ifcgeom/IfcRepresentationShapeItem.h index e78584929c..58a77c4c5b 100644 --- a/src/ifcgeom/IfcRepresentationShapeItem.h +++ b/src/ifcgeom/IfcRepresentationShapeItem.h @@ -28,10 +28,10 @@ namespace IfcGeom { class IFC_GEOM_API IfcRepresentationShapeItem { private: + int id; gp_GTrsf placement; TopoDS_Shape shape; const SurfaceStyle* style; - int id; public: IfcRepresentationShapeItem(int id, const gp_GTrsf& placement, const TopoDS_Shape& shape, const SurfaceStyle* style) : id(id), placement(placement), shape(shape), style(style) {} diff --git a/src/ifcparse/IfcSpfHeader.cpp b/src/ifcparse/IfcSpfHeader.cpp index 49f7f9df18..5b95e68dcf 100644 --- a/src/ifcparse/IfcSpfHeader.cpp +++ b/src/ifcparse/IfcSpfHeader.cpp @@ -36,7 +36,9 @@ static const char * const DATA = "DATA"; using namespace IfcParse; HeaderEntity::HeaderEntity(const char * const datatype, size_t size, IfcFile* file) - : IfcEntityInstanceData(file, size), size_(size), _datatype(datatype) + : IfcEntityInstanceData(file, size) + , _datatype(datatype) + , size_(size) { if (file) { offset_in_file_ = file->stream->Tell();