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

@@ -86,7 +86,7 @@ bool Measurement::has3DReferences()
}
//add a 3D reference (obj+sub) to end of list
int Measurement::addReference3D(App::DocumentObject *obj, const std::string subName)
int Measurement::addReference3D(App::DocumentObject *obj, const std::string& subName)
{
return addReference3D(obj,subName.c_str());
}