PVS: V794 The assignment operator should be protected from the case of 'this == ...'
This commit is contained in:
@@ -65,6 +65,9 @@ Toolpath::~Toolpath()
|
||||
|
||||
Toolpath &Toolpath::operator=(const Toolpath& otherPath)
|
||||
{
|
||||
if (this == &otherPath)
|
||||
return *this;
|
||||
|
||||
clear();
|
||||
vpcCommands.resize(otherPath.vpcCommands.size());
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user