View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023143 | Community | OCCT:Modeling Algorithms | public | 2012-05-06 19:45 | 2013-04-29 15:21 |
Reporter | QbProg | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | VC++ 2010 | ||
Product Version | 6.5.3 | ||||
Target Version | 6.6.0 | Fixed in Version | 6.6.0 | ||
Summary | 0023143: Suspicious else | ||||
Description | In src\IntPatch\IntPatch_ImpPrmIntersection.cxx , in ForcedPurgePoints, line 1502 if(IsReversed) { Result->Value(1).ParametersOnS2(U1,V1); Result->Value(Result->NbPoints()).ParametersOnS2(U2,V2); } else { Result->Value(1).ParametersOnS2(U1,V1); Result->Value(Result->NbPoints()).ParametersOnS2(U2,V2); } the else is the same as the condition. The same in the "Sphere" case below (line 1520) | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
child of | 0023132 | closed | Suspicious code snippets |
|
Dear oan, Fix is integrated to branch CR23143 (see commit message for details). Please review. P.S.: This function is never used within the code, so I suppose that any changes in it won't affect the OCCT. |
|
Dear OMY, I propose to eliminate code duplication in the method ForcedPurgePoints for better readability. |
|
Dear OAN, I have eliminated code duplication in this function. Please, review |
|
Dear JGV, Please review. |
|
No remarks |
|
Dear BugMaster, Branch CR23143 (and products from GIT master) was compiled on Linux and Windows platforms and tested. Regression: Not detected Improvements: Not detected Testing case: Not needed |
occt: master 3fa7e3e7 2012-11-15 08:59:23
|
0023143: Suspicious else Changes description: In src\IntPatch\IntPatch_ImpPrmIntersection.cxx , in ForcedPurgePoints function changed ParametersOnS2() to ParametersOnS1() in cases of Standard_Boolean IsReversed == false in lines 1522 & 1540 Got rid from duplicated code in function static void ForcedPurgePoints(...) |
Affected Issues 0023143 |
|
mod - src/IntPatch/IntPatch_ImpPrmIntersection.cxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-05-06 19:45 | QbProg | New Issue | |
2012-05-06 19:45 | QbProg | Assigned To | => abv |
2012-05-07 09:18 |
|
Relationship added | child of 0023132 |
2012-05-07 09:28 |
|
Assigned To | abv => dbv |
2012-05-07 09:28 |
|
Status | new => assigned |
2012-05-07 09:29 |
|
Category | OCCT:Foundation Classes => OCCT:Modeling Algorithms |
2012-05-07 09:29 |
|
Target Version | => 6.5.4 |
2012-10-09 18:36 | oan | Assigned To | dbv => omy |
2012-10-16 11:19 |
|
Assigned To | omy => oan |
2012-10-16 11:22 |
|
Note Added: 0021782 | |
2012-10-16 11:22 |
|
Status | assigned => resolved |
2012-10-16 16:34 | oan | Note Added: 0021800 | |
2012-10-16 16:34 | oan | Status | resolved => reviewed |
2012-10-16 16:34 | oan | Assigned To | oan => omy |
2012-10-16 16:34 | oan | Status | reviewed => assigned |
2012-10-18 09:42 |
|
Note Added: 0021827 | |
2012-10-18 09:43 |
|
Status | assigned => resolved |
2012-10-18 09:43 |
|
Assigned To | omy => oan |
2012-10-22 11:04 | oan | Assigned To | oan => jgv |
2012-10-22 11:06 | oan | Note Added: 0021872 | |
2012-10-23 16:31 |
|
Note Added: 0021907 | |
2012-10-23 16:31 |
|
Status | resolved => reviewed |
2012-10-23 16:38 |
|
Assigned To | jgv => mkv |
2012-10-23 18:41 |
|
Target Version | 6.5.4 => 6.6.0 |
2012-10-31 12:35 | apn | Note Added: 0022030 | |
2012-10-31 12:35 | apn | Test case number | => Not needed |
2012-10-31 12:35 | apn | Assigned To | mkv => bugmaster |
2012-10-31 12:35 | apn | Status | reviewed => tested |
2012-11-16 13:03 |
|
Changeset attached | => occt master 3fa7e3e7 |
2012-11-16 13:03 |
|
Assigned To | bugmaster => omy |
2012-11-16 13:03 |
|
Status | tested => verified |
2012-11-16 13:03 |
|
Resolution | open => fixed |
2012-12-10 17:16 |
|
Changeset attached | => occt master 3fa7e3e7 |
2013-04-23 13:36 |
|
Status | verified => closed |
2013-04-29 15:21 |
|
Fixed in Version | => 6.6.0 |