Commit f0e6a6d3 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'fix/avoid-compiler-warning' into 'master'

[brepwriter] use Standard_Integer (as OCC) to avoid compiler warning

See merge request DennisGlaeser/frackit!58
parents a437ed5b 0343148a
......@@ -34,6 +34,7 @@
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopTools_DataMapOfShapeInteger.hxx>
#include <TopTools_ListOfShape.hxx>
#include <Standard_TypeDef.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS_Compound.hxx>
......@@ -226,12 +227,15 @@ private:
{
BRep_Builder b;
b.MakeCompound(compound_);
for(std::size_t i = 1; i <= vmap_.Extent(); i++) b.Add(compound_, vmap_(i));
for(std::size_t i = 1; i <= emap_.Extent(); i++) b.Add(compound_, emap_(i));
for(std::size_t i = 1; i <= wmap_.Extent(); i++) b.Add(compound_, wmap_(i));
for(std::size_t i = 1; i <= fmap_.Extent(); i++) b.Add(compound_, fmap_(i));
for(std::size_t i = 1; i <= shmap_.Extent(); i++) b.Add(compound_, shmap_(i));
for(std::size_t i = 1; i <= somap_.Extent(); i++) b.Add(compound_, somap_(i));
// use Standard_Integer (as OCC uses this type) instead of
// std::size_t here to avoid compiler warning
for(Standard_Integer i = 1; i <= vmap_.Extent(); i++) b.Add(compound_, vmap_(i));
for(Standard_Integer i = 1; i <= emap_.Extent(); i++) b.Add(compound_, emap_(i));
for(Standard_Integer i = 1; i <= wmap_.Extent(); i++) b.Add(compound_, wmap_(i));
for(Standard_Integer i = 1; i <= fmap_.Extent(); i++) b.Add(compound_, fmap_(i));
for(Standard_Integer i = 1; i <= shmap_.Extent(); i++) b.Add(compound_, shmap_(i));
for(Standard_Integer i = 1; i <= somap_.Extent(); i++) b.Add(compound_, somap_(i));
}
/*!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment