mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +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());
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user