View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023841 | Community | OCCT:DRAW | public | 2013-03-20 12:23 | 2013-04-29 15:24 |
Reporter | Pawel | Assigned To | |||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Platform | A | OS | L | ||
Product Version | 6.5.4 | ||||
Target Version | 6.6.0 | Fixed in Version | 6.6.0 | ||
Summary | 0023841: Redundant assignment to itself. | ||||
Description | In ViewerTest_ViewerCommands.cxx Lines: 1163 / 1164 X_ButtonPress = X_ButtonPress; Y_ButtonPress = Y_ButtonPress; and 1251 / 1252 X_Motion = X_Motion; Y_Motion = Y_Motion; Not sure about the intention. Maybe some cross-assignement like X_Motion = X_ButtonPress was meant? | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
The code in question has been integrated with 0023243 |
|
Before patch 0023243 there were duplicate variables (X_ButtonPress == xx1, X_Motion == xx2, Y_ButtonPress == yy1, Y_Motion == yy2). So, this assignment does not carry any sense, and can be removed. Dear Andrey, please review branch CR23841 |
|
No remarks, please test. |
|
Pawel, thank you for reporting the issue -- it was real bug! |
|
Hello Andrey, no problem. I occasionally run cppcheck and/or PVS-Studio on OCCT and this is how such issues come up... |
|
Dear BugMaster, Branch CR23841 (and products from GIT master) was compiled on Linux and Windows platforms and tested without rebase. SHA-1: fb506ad63d0e609fe97c34ff1646744f2683fa0c Number of compiler warnings: occt component : Linux: 3 (3 on master) Windows: 11 (11 on master) products component : Linux: 0 (0 on master) Windows: 50 (50 on master) Regressions: No regressions Improvements: No improvements Testing cases: Not needed Testing on Linux: Total MEMORY difference: 243645256 / 241817424 Total CPU difference: 16888.970000000067 / 14998.230000000101 Testing on Windows: Total MEMORY difference: 351739168 / 354518108 Total CPU difference: 21628.5625 / 22867.515625 There are not serious differences in images found by testdiff. |
Date Modified | Username | Field | Change |
---|---|---|---|
2013-03-20 12:23 | Pawel | New Issue | |
2013-03-20 12:23 | Pawel | Assigned To | => bugmaster |
2013-03-20 12:33 |
|
Assigned To | bugmaster => dbv |
2013-03-20 12:33 |
|
Status | new => assigned |
2013-03-20 12:35 |
|
Relationship added | child of 0023243 |
2013-03-20 12:35 |
|
Note Added: 0023811 | |
2013-03-20 12:39 |
|
Target Version | 6.7.0 => 6.6.0 |
2013-03-20 13:42 |
|
Note Added: 0023814 | |
2013-03-20 13:42 |
|
Assigned To | dbv => abv |
2013-03-20 13:42 |
|
Status | assigned => resolved |
2013-03-20 14:36 |
|
Note Added: 0023815 | |
2013-03-20 14:36 |
|
Assigned To | abv => bugmaster |
2013-03-20 14:36 |
|
Status | resolved => reviewed |
2013-03-20 14:37 |
|
Note Added: 0023816 | |
2013-03-20 15:10 | Pawel | Note Added: 0023818 | |
2013-03-20 16:30 |
|
Assigned To | bugmaster => mkv |
2013-03-21 18:22 |
|
Note Added: 0023838 | |
2013-03-21 18:23 |
|
Test case number | => Not needed |
2013-03-21 18:23 |
|
Assigned To | mkv => bugmaster |
2013-03-21 18:23 |
|
Status | reviewed => tested |
2013-03-25 18:39 |
|
Changeset attached | => occt master 5c686fff |
2013-03-25 18:39 |
|
Assigned To | bugmaster => dbv |
2013-03-25 18:39 |
|
Status | tested => verified |
2013-03-25 18:39 |
|
Resolution | open => fixed |
2013-04-23 13:35 |
|
Status | verified => closed |
2013-04-29 15:24 |
|
Fixed in Version | => 6.6.0 |