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

@@ -61,7 +61,7 @@ class TechDrawExport GeometryObject
{
public:
/// Constructor
GeometryObject(std::string parent);
GeometryObject(const std::string& parent);
virtual ~GeometryObject();
void clear();