mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +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:
parent
3f16d97046
commit
799e449136
@ -87,8 +87,7 @@ static void SetZeroSplitData(Voxel_SplitData* data)
|
||||
{
|
||||
SetZeroSplitData((Voxel_SplitData*) data->GetSplitData());
|
||||
}
|
||||
delete (data);
|
||||
data = 0;
|
||||
delete data;
|
||||
}
|
||||
|
||||
void Voxel_ROctBoolDS::SetZero()
|
||||
@ -100,7 +99,8 @@ void Voxel_ROctBoolDS::SetZero()
|
||||
{
|
||||
if (((Voxel_SplitData**)myData)[ix])
|
||||
{
|
||||
SetZeroSplitData((Voxel_SplitData*)((Voxel_SplitData**)myData)[ix]);
|
||||
SetZeroSplitData((Voxel_SplitData*)((Voxel_SplitData**)myData)[ix]);
|
||||
((Voxel_SplitData**)myData)[ix] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user