From: vro Date: Thu, 13 Jun 2013 11:38:17 +0000 (+0400) Subject: 0023889: Assignment of function parameter has no effect outside the function. X-Git-Tag: V6_7_0_beta~237 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=799e4491368b1b904562a9b57ffa3cf0e8f5d907;p=occt-copy.git 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 --- diff --git a/src/Voxel/Voxel_ROctBoolDS.cxx b/src/Voxel/Voxel_ROctBoolDS.cxx index 8d2e8a920e..aefe2a2459 100755 --- a/src/Voxel/Voxel_ROctBoolDS.cxx +++ b/src/Voxel/Voxel_ROctBoolDS.cxx @@ -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; } } }