performance improvements

+ use const-reference as argument to avoid tmp. copy
+ use prefix incremation operator instead of postfix increment operator
This commit is contained in:
wmayer
2016-11-08 13:51:22 +01:00
parent 85170b3d9f
commit 17c8b2c813
6 changed files with 9 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ struct EdgePoints {
TopoDS_Edge edge;
};
GeometryObject::GeometryObject(std::string parent) :
GeometryObject::GeometryObject(const string& parent) :
Scale(1.f),
m_parentName(parent),
m_isoCount(0)