mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0023889: Assignment of function parameter has no effect outside the function.
Voxel_ROctBoolDS::SetZeroSplitData() is modified to accept an address of a pointer to deleting data. Removal of a compilation error on Linux. Compile error on Linux platform was fixed
This commit is contained in:
@@ -87,8 +87,7 @@ static void SetZeroSplitData(Voxel_SplitData* data)
|
|||||||
{
|
{
|
||||||
SetZeroSplitData((Voxel_SplitData*) data->GetSplitData());
|
SetZeroSplitData((Voxel_SplitData*) data->GetSplitData());
|
||||||
}
|
}
|
||||||
delete (data);
|
delete data;
|
||||||
data = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Voxel_ROctBoolDS::SetZero()
|
void Voxel_ROctBoolDS::SetZero()
|
||||||
@@ -101,6 +100,7 @@ void Voxel_ROctBoolDS::SetZero()
|
|||||||
if (((Voxel_SplitData**)myData)[ix])
|
if (((Voxel_SplitData**)myData)[ix])
|
||||||
{
|
{
|
||||||
SetZeroSplitData((Voxel_SplitData*)((Voxel_SplitData**)myData)[ix]);
|
SetZeroSplitData((Voxel_SplitData*)((Voxel_SplitData**)myData)[ix]);
|
||||||
|
((Voxel_SplitData**)myData)[ix] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user