View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0023310 | Open CASCADE | OCCT:Foundation Classes | public | 2012-07-17 18:30 | 2013-04-29 15:21 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 6.5.3 | ||||
Target Version | 6.6.0 | Fixed in Version | 6.6.0 | ||
Summary | 0023310: No IsEqual function for Handles | ||||
Description | For now we don't have IsEqual function for Handles. Thus, some classes use unacceptable workaround (check OpenGl_FontMgr.cxx lines 49-57 and TopTools_MutexForShapeProvider.hxx lines 69-73). However we have HasCode function for Handles. | ||||
Tags | No tags attached. | ||||
Test case number | Not needed | ||||
|
Dear KGV, I've added IsEqual function for Handles. Please, review. |
|
Dear omy, please do not comment dead code in OpenGl_FontMgr.cxx and TopTools_MutexForShapeProvider.hxx but remove it instead. >+ Handle(Standard_Type) aH1 = first.Access()->DynamicType(); >+ Handle(Standard_Type) aH2 = second.Access()->DynamicType(); >+ return (aH1 == aH2 && first == second); Since handles compare only pointers (and == is not virtual) for equality this is pointless and overkill to compare dynamic type as well. And declare IsEqual function as inline since as Handle_Standard_Transient::operator==. |
|
Dear KGV, I've fixed the mistakes you mentioned above. Please, review. |
|
> I've fixed the mistakes you mentioned above. No, all remarks were ignored. |
|
Dear KGV, I've fixed the code according to your remarks. Please, review. |
|
Dear bugmaster, patch is ready for testing in CR23310_1 branch. Dear omy, your original patch in CR23310 contains changes unrelated to this bug (0023237 mentioned which is already integrated) without any notice in bugtracker. This allowed only for trivial corrections. Please register dedicated bug if needed. Notice, usage of global IsEqual functions defined in global scope could be avoid since #0021212. |
|
Dear BugMaster, Branch CR23310_1 (and products from GIT master) was compiled on Linux and Windows platforms. Where are following compilation errors: http://jenkins-test-01.nnov.opencascade.com/user/mnt/my-views/view/CR23310_1/job/mnt-CR23310_1-master_build_occt_linux/1/parsed_console/? ../../../inc/AIS_NDataMapOfTransientIteratorOfListTransient.hxx:27: error: redefinition of 'Standard_Boolean IsEqual(const Handle_Standard_Transient&, const Handle_Standard_Transient&)' ../../../inc/Handle_Standard_Transient.hxx:243: error: 'Standard_Boolean IsEqual(const Handle_Standard_Transient&, const Handle_Standard_Transient&)' previously defined here ../../../inc/AIS_NDataMapOfTransientIteratorOfListTransient.hxx:27: error: redefinition of 'Standard_Boolean IsEqual(const Handle_Standard_Transient&, const Handle_Standard_Transient&)' ../../../inc/Handle_Standard_Transient.hxx:243: error: 'Standard_Boolean IsEqual(const Handle_Standard_Transient&, const Handle_Standard_Transient&)' previously defined here ../../../inc/AIS_NDataMapOfTransientIteratorOfListTransient.hxx:27: error: redefinition of 'Standard_Boolean IsEqual(const Handle_Standard_Transient&, const Handle_Standard_Transient&)' ../../../inc/Handle_Standard_Transient.hxx:243: error: 'Standard_Boolean IsEqual(const Handle_Standard_Transient&, const Handle_Standard_Transient&)' previously defined here |
|
Dear MKV, I got rid of the compilation errors. Please, test. |
|
Dear BugMaster, Branch CR23310_1 (and products from GIT master) was compiled on Linux and Windows platforms and tested. Number of compiler warnings: occt component : Linux: 3 (3 on master) Windows: 85 (85 on master) products component : Linux: 9 (9 on master) Windows: 54 (54 on master) Regressions: No regressions Improvements: No improvements Testing cases: Not needed Testing on Linux: Total MEMORY difference: 223183024 / 223138992 Total CPU difference: 8089.03000000031 / 8335.830000000542 Testing on Windows: Total MEMORY difference: 298529864 / 298137536 Total CPU difference: 11141.953125 / 11644.109375 There are not serious differences in images found by testdiff. |
|
Please rebase CR23310_1 to master and try to compile |
|
Dear BugMaster, Branch CR223310_1 was rebased on the current master. Branch CR23310_1 (and products from GIT master) was compiled on Linux and Windows platforms and tested. Number of compiler warnings: occt component : Linux: 3 (3 on master) Windows: 57 (57 on master) products component : Linux: 9 (9 on master) Windows: 50 (50 on master) Regressions: No regressions Improvements: No improvements Testing cases: Not needed |
occt: master 024855ee 2013-02-01 12:47:50
|
0023310: No IsEqual function for Handles IsEqual function for Handle(Standard_Transient) was added to global scope. Getting rid of compilation errors (removed additional IsEqual functions) |
Affected Issues 0023310 |
|
mod - src/AIS/AIS_NDataMapOfTransientIteratorOfListTransient.hxx | Diff File | ||
mod - src/OpenGl/OpenGl_FontMgr.cxx | Diff File | ||
mod - src/Standard/Handle_Standard_Transient.hxx | Diff File | ||
mod - src/TObj/TObj_Common.hxx | Diff File | ||
mod - src/TopTools/TopTools_MutexForShapeProvider.hxx | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-07-17 18:30 |
|
New Issue | |
2012-07-17 18:30 |
|
Assigned To | => abv |
2012-10-26 17:59 |
|
Assigned To | abv => omy |
2012-10-26 17:59 |
|
Status | new => assigned |
2012-10-26 17:59 |
|
Target Version | => 6.6.0 |
2013-01-21 17:32 |
|
Note Added: 0023046 | |
2013-01-21 17:32 |
|
Assigned To | omy => inv |
2013-01-21 17:32 |
|
Status | assigned => resolved |
2013-01-23 10:33 |
|
Note Edited: 0023046 | |
2013-01-23 10:33 |
|
Assigned To | inv => kgv |
2013-01-23 11:26 | kgv | Note Added: 0023081 | |
2013-01-23 11:26 | kgv | Assigned To | kgv => omy |
2013-01-23 11:26 | kgv | Status | resolved => assigned |
2013-01-23 12:31 |
|
Note Added: 0023086 | |
2013-01-23 12:31 |
|
Assigned To | omy => kgv |
2013-01-23 12:31 |
|
Status | assigned => resolved |
2013-01-23 14:09 | kgv | Note Added: 0023089 | |
2013-01-23 14:09 | kgv | Assigned To | kgv => omy |
2013-01-23 14:09 | kgv | Status | resolved => assigned |
2013-01-23 17:00 |
|
Note Added: 0023095 | |
2013-01-23 17:00 |
|
Assigned To | omy => kgv |
2013-01-23 17:00 |
|
Status | assigned => resolved |
2013-01-24 10:59 | kgv | Note Added: 0023114 | |
2013-01-24 10:59 | kgv | Assigned To | kgv => bugmaster |
2013-01-24 10:59 | kgv | Status | resolved => reviewed |
2013-01-24 16:31 |
|
Assigned To | bugmaster => mkv |
2013-01-25 12:52 |
|
Note Added: 0023144 | |
2013-01-25 12:53 |
|
Test case number | => Not needed |
2013-01-25 12:53 |
|
Assigned To | mkv => omy |
2013-01-25 12:53 |
|
Status | reviewed => assigned |
2013-01-25 16:35 |
|
Note Added: 0023156 | |
2013-01-25 16:35 |
|
Assigned To | omy => mkv |
2013-01-25 16:35 |
|
Status | assigned => resolved |
2013-01-25 16:44 | kgv | Status | resolved => reviewed |
2013-01-28 12:23 |
|
Note Added: 0023172 | |
2013-01-28 12:23 |
|
Assigned To | mkv => bugmaster |
2013-01-28 12:23 |
|
Status | reviewed => tested |
2013-01-28 18:08 | bugmaster | Note Added: 0023182 | |
2013-01-28 18:08 | bugmaster | Assigned To | bugmaster => mkv |
2013-01-28 18:08 | bugmaster | Status | tested => assigned |
2013-02-01 11:53 |
|
Note Added: 0023230 | |
2013-02-01 11:53 |
|
Assigned To | mkv => bugmaster |
2013-02-01 11:53 |
|
Status | assigned => resolved |
2013-02-01 11:54 |
|
Status | resolved => reviewed |
2013-02-01 11:54 |
|
Status | reviewed => tested |
2013-02-04 14:47 |
|
Changeset attached | => occt master 024855ee |
2013-02-04 14:47 |
|
Assigned To | bugmaster => omy |
2013-02-04 14:47 |
|
Status | tested => verified |
2013-02-04 14:47 |
|
Resolution | open => fixed |
2013-04-23 13:36 |
|
Status | verified => closed |
2013-04-29 15:21 |
|
Fixed in Version | => 6.6.0 |